route only auth to page laravel code example
Example 1: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Example 2: laravel force login by id
Auth::login($user);
composer require laravel/ui
php artisan ui vue --auth
Auth::login($user);