Error creating Laravel 5 Resource Controlller

I am trying to create a resource controller by running the following command

php artisan controller:make ImageController 

but i have this error

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

What's wrong?

+8
php laravel laravel-5
source share
1 answer

Its a little mistake.

Change your code:

 php artisan controller:make ImageController 

to

 php artisan make:controller ImageController 
+16
source share

All Articles