I tried running this command in Laravel 5.2 but it doesn't work:
php artisan make:auth
And prompt these statements:
[InvalidArgumentException] Command "make:auth" is not defined Did you mean one of these? make:test make:request make:migration make:seeder make:middleware make:controller make:provider make:policy make:event make:console make:job make:lis tener make:model make:command
Laravel 8 Update
laravel/ui
Still works, but is considered legacy. Consider using Laravel Breeze or Laravel Jetstream.Laravel 6 Update
Now that Laravel 6 is released, you need to install
laravel/ui代码>.
If you are using React or Bootstrap in your project, you can change
vue
toreact
orbootstrap
(see Using React).Then you need to perform migrations and compile the frontend
Source: Laravel Authentication Documentation
NOTE: Use the default User model and the Eloquent authentication driver only if you want to use scaffolding.
For Laravel >=6
Reference: Laravel Authentication Documentation
Looks like you are not using Laravel 5.2, these are the make commands available in L5.2, you are missing more than just the make:auth command
Make sure you have this dependency in your composer.json file
Then run