Php artisan make:auth 命令未定义 [英] Php artisan make:auth command is not defined
本文介绍了Php artisan make:auth 命令未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 Laravel 5.2 中运行此命令,但它不起作用:
I'm trying to run this command in Laravel 5.2 but it's not working:
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
推荐答案
For Laravel >=6
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
参考:Laravel 认证文档
看起来您没有使用 Laravel 5.2,这些是 L5.2 中可用的 make 命令,而您缺少的不仅仅是 make:auth 命令
it looks you are not using Laravel 5.2, these are the available make commands in L5.2 and you are missing more than just the make:auth command
make:auth Scaffold basic login and registration views and routes
make:console Create a new Artisan command
make:controller Create a new controller class
make:entity Create a new entity.
make:event Create a new event class
make:job Create a new job class
make:listener Create a new event listener class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:policy Create a new policy class
make:presenter Create a new presenter.
make:provider Create a new service provider class
make:repository Create a new repository.
make:request Create a new form request class
make:seeder Create a new seeder class
make:test Create a new test class
make:transformer Create a new transformer.
确保你的 composer.json 文件中有这个依赖
Be sure you have this dependency in your composer.json file
"laravel/framework": "5.2.*",
然后运行
composer update
这篇关于Php artisan make:auth 命令未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文