use Auth;
$user_id = Auth::user()->id;
$id = Auth::user()->id;print_r($id);
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
///////////////////////////////////////////////////////////////
// or
Auth::logout();
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
$id = Auth::id();
$id = Auth::id();