Answers for "how to add custom remember me functionality in laravel"

PHP
0

how remember me in laravel working

$remember_me = $request->has('remember') ? true : false;



    if (auth()->attempt(['email' => $request->input('email'), 'password' => $request->input('password')], $remember_me))
    {
      $user = auth()->user();
      Auth::login($user,true);
    }else{

        return back()->with('error','your username and password are wrong.');

    }
Posted by: Guest on February-05-2021

Code answers related to "how to add custom remember me functionality in laravel"

Browse Popular Code Answers by Language