laravel auth login file directory code example
Example 1: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Example 2: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
Example 3: laravel force login by id
Auth::login($user);