login session laravel example
Example 1: set session after login with laravel
$user = Auth::User();
Session::put('user', $user);
$user=Session::get('user');
return $user->name;
Example 2: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Example 3: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;