Auth::User() in controler laravel code example Example: laravel authentication composer require laravel/ui php artisan ui vue --auth