laravel attempt login code example
Example: auth::login in laravel
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
or
Auth::logout();
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
or
Auth::logout();