laravel set auth user manually code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: laravel auth
//laravel 8.x
//for bootstrap scafolding
php artisan ui bootstrap --auth
Example 3: make authentication in laravel
composer require laravel/ui:^2.4
php artisan ui vue --auth
Example 4: laravel force login by id
Auth::login($user);