AuthenticatesUsers laravel code example
Example 1: get user auth in laravel
Auth::user();
Example 2: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Auth::user();
composer require laravel/ui
php artisan ui vue --auth