check logged in controllers laravel code example Example: artisan make auth composer require laravel/ui php artisan ui vue --auth