Obtenir l'identifiant de connexion 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();