login session in laravel7 code example
Example: set session after login with laravel
$user = Auth::User();
Session::put('user', $user);
$user=Session::get('user');
return $user->name;
$user = Auth::User();
Session::put('user', $user);
$user=Session::get('user');
return $user->name;