2016-02-11 31 views
8

Tôi đang cố gắng để tạo ra một bộ điều khiển tài nguyên bằng cách thực hiện lệnh sauLaravel 5 Resource Controlller Creation Lỗi

php artisan controller:make ImageController 

nhưng tôi đang gặp lỗi này

[Symfony\Component\Console\Exception\CommandNotFoundException] 
    There are no commands defined in the "controller" namespace. 

Điều gì là sai?

+0

Nó có thể được coi là một lỗi typo. –

Trả lời

16

Đó là một sai lầm nhỏ.

Thay đổi mã của bạn từ:

php artisan controller:make ImageController 

để

php artisan make:controller ImageController 
+0

mã tạo bộ điều khiển tài nguyên trống,

+0

Bạn có muốn một số mã đĩa nồi hơi cùng với điều đó không? –

+0

có Jilson, bạn có thể cho tôi biết xin vui lòng –