Zbigniew Kisły Zbigniew Kisły - 2 years ago 198
PHP Question

"There are no commands defined in the 'command' namespace." after running command:make in Laravel

Just like in title. I'm trying to run from artisan

php artisan command:make NameOfCommand

but all I see is

There are no commands defined in the "command" namespace.

Any idea what is this?

Answer Source

You have misplaced the command it is

php artisan make:command NameOfCommand

and not

php artisan command:make NameOfCommand

If you have simply write php artisan within your command prompt it'll show you the list of commands over there have a look

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download