Dapatkan ID User Login Laravel
use Auth;
$user_id = Auth::user()->id;
Innocent Ibis
use Auth;
$user_id = Auth::user()->id;
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
///////////////////////////////////////////////////////////////
// or
Auth::logout();