Make sure you are logged in to laravel code example
Example 1: laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
Example 2: laravel auth
composer require laravel/ui:^2.4
php artisan ui vue --auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
composer require laravel/ui:^2.4
php artisan ui vue --auth