Laravel 5.1.19 Artisan make:auth 不可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32939191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel 5.1.19 Artisan make:auth is not available
提问by Satch3000
I have installed the latest version of laravel 5.1.19.
我已经安装了最新版本的 laravel 5.1.19。
I've tried running:
我试过运行:
php artisan make:auth
But it's returning:
但它回来了:
[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
Is this command no longer available?
此命令不再可用吗?
I'm on a mac os x by the way.
顺便说一下,我在 mac os x 上。
采纳答案by Burak
Yes, that command is not available as the Auth feature comes default by the laravel/laravelpackage.
是的,该命令不可用,因为laravel/laravel包默认提供 Auth 功能。
If you check the Illuminate/Auth/Console, which is the place of console commands for the auth package, you will only see that the only available command is auth:clear-resets
如果您检查Illuminate/Auth/Console,这是 auth 包的控制台命令的位置,您将只会看到唯一可用的命令是auth:clear-resets
You can see from the committhat make:auth
has been removed for a year.
你可以看到从提交的是make:auth
已一年中移除。
回答by hitesh
Check your Laravel Version if your vesion similar to 6.0.*then, follow these steps -
如果您的版本与 6.0.* 相似,请检查您的 Laravel 版本,然后按照以下步骤操作 -
- use this command
composer require laravel/ui
php artisan ui vue --auth
npm install
thennpm run dev
- 使用这个命令
composer require laravel/ui
php artisan ui vue --auth
npm install
然后npm run dev
this is use for latest laravel version 6.0.*
这是用于最新的 Laravel 版本 6.0.*
回答by Yassin Krairi
php artisan make:auth is not available in laravel 5.1 try to update your composer ( composer update ) and check in your file composer.json if laravel 5.2
php artisan make:auth 在 laravel 5.1 中不可用尝试更新你的 Composer ( composer update ) 并检查你的文件 composer.json 如果 laravel 5.2
回答by Ahmed Sa'eed
If any one needs make::auth in laravel 6.0,
如果有人需要 laravel 6.0 中的 make::auth,
php artisan make:auth is not available in laravel 6.0
php artisan make:auth 在 laravel 6.0 中不可用
try this
尝试这个
composer require laravel/ui
php artisan ui vue --auth