app/Http/Controllers/LandingController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
      User::create([
          'namalengkap' => $request->namaLengkap,
          'username' => $request->username,
          'password' => Hash::make($request->password),
      ]);
      return redirect()->route('login')
                      ->with('acc', 'a');
    }
public function store ( Request $ request ) { User :: create ( [ 'namalengkap' => $ request -> namaLengkap , 'username' => $ request -> username , 'password' => Hash :: make ( $ request -> password ) , ] ) ; return redirect ( ) -> route ( 'login' ) -> with ( 'acc' , 'a' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .