how to access auth() in web.php file in laravel code example Example: make authentication in laravel composer require laravel/ui:^2.4 php artisan ui vue --auth