I'm trying to run this command in Laravel 8.57.0 but it's not working:
PHP artisan make:auth
and the error is :
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:listener
make:model
make:command
I also tried
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
but still have the same error. So, I guess that either I am using the wrong command or I am trying to do something that can not be done.
Maybe most likely experienced people will see right away what is wrong.
What are you trying to do exactly? Create the authentication scaffolding from the laravel/ui
package?
If so, then these two commands should be enough:
composer require laravel/ui
php artisan ui vue --auth
You can read further about it here .
Why don't you try using the fortify package for authentication?
composer require laravel/fortify
The details can be found here .
Why dont you use Laravel Sanctum
composer require laravel/sanctum
Since Laravel >= 6, the command php artisan make:auth
was removed from the core and moved to an individual package called laravel/ui
, so the command now looks like: php artisan ui vue --auth
.
Depending on what you want to accomplish I can recommend you the following solutions:
composer dump-autoload
and php artisan optimize
Laravel Fortify
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.