今天试了下官方的用户验证,按照手册执行php artisan make:auth报如下错误
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:listener
make:model
make:command
搜索了一下问题原因,这个命令5.2,5.4版本是支持的,5.1版本不支持,更换5.4版本ok了,但是更改composer.json文件升级5.4版本还是报错。参考文档:
https://stackoverflow.com/questions/34545641/php-artisan-makeauth-command-is-not-defined