get auth login id laravel code example
Example 1: how login one user with id in laravel
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
///////////////////////////////////////////////////////////////
// or
Auth::logout();
Example 2: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();