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