Zbigniew Kisły Zbigniew Kisły - 6 months ago 20
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

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