2015-12-31 83 views
6

我試圖在laravel 5.2中運行此命令,但它不起作用。Php artisan make:auth命令未定義

PHP工匠製作:AUTH

,並與這些statments提示。

[InvalidArgumentException] 命令 「使:AUTH」 沒有定義 您的意思是其中之一?

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 
+0

他們是什麼都不喜歡使用Illuminate \ Contracts \ Auth \ Authenticator;在AuthenticateUser.php.as我提到我使用laravel 5.2 – naan

+0

你試過'作曲者更新'? –

+0

是的,只是昨晚.. – naan

回答

9

它不使用Laravel 5.2看起來,這些都是在15.2可用make命令和你缺少的不僅僅是讓更多:auth命令

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依賴文件

"laravel/framework": "5.2.*", 

然後運行

composer update 
+0

我的錯誤.sorry.I沒有檢查我的composr.json文件。 – naan

相關問題