Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5 Resource Controller Creation Error

I'm trying to create a resource controller by executing the following command

php artisan controller:make ImageController

but I'm having this error

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

What is wrong?

like image 968
Jonh Doe Avatar asked Feb 11 '16 03:02

Jonh Doe


1 Answers

Its a small mistake.

Change your code from:

php artisan controller:make ImageController

to

php artisan make:controller ImageController
like image 169
Jilson Thomas Avatar answered Sep 24 '22 08:09

Jilson Thomas