当我尝试运行此命令时 php artisan make:auth... 出现以下错误。有什么方法可以运行这个命令,或者这个命令的任何替代方法,我应该为此命令安装 amy 包吗?
Command "make:auth" is not defined.
Did you mean one of these?
make:cast
make:channel
make:command
make:component
make:controller
make:event
make:exception
make:factory
make:job
make:listener
make:mail
make:middleware
make:migration
make:model
make:notification
make:observer
make:policy
make:provider
make:request
make:resource
make:rule
make:scope
make:seeder
make:test
Laravel Framework 9.8.1
最佳答案
安装 Laravel 9 后,您需要安装 laravel/ui 包,以便在 laravel 9 中生成身份验证。
composer require laravel/ui
然后选择其中一个
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
关于Php artisan 制作:auth not defined in Laravel 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71950345/