My custom artisan commands are not available on the production server (1and1 shared Linux Host). With the same codebase (I have checked the config entries in app.php and others) it works fine on my development machine.
I have also checked that the command code in app/commands is correct and that it is added in the app/start/artisan.php file
I have done composer dump-autoload and have through dd() statements verfied that both my command and the artisan.php script are executed.
Finally, I have added some prints to vendor/symfony/console/Symfony/Component/Console/Application.php and could see that my command was added in line 412 to the array of commands.
But it still does not show in the php artisan list output and cannot be called.
When I enter php artisan mycommand, I receive:
[InvalidArgumentException]
Command "mycommand" is not defined.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community