Laravel Artisan CLI doesn't execute commands

805 views Asked by At

The problem I'm facing with Laravel's (v4.2) Artisan CLI is that when I try to execute a command (for instance php artisan list) the command doesn't work and instead I get the contents of Illuminate\Foundation\Application object in Command Window.

Screenshot

1

There are 1 answers

5
CenterOrbit On

You're question is vauge. But if what you're asking is about how to add custom commands to Laravel's Artisan, then you are probably missing the last step.

If you have already created your command via:

php artisan command:make CustomCommand --command=custom:command

Then the last step that you need to do is to register your command:

Artisan::add(new CustomCommand);