1 year ago

Artisan command from package not recognized when calling from PHP

Posted 1 year ago by markuskoehler

Hi all,

I have an issue when I try to call an artisan command from PHP through the Artisan::call() syntax. I want to implement this in one package and the command comes from another package, both are obviously used in the same app. When executing "php artisan" from the cmd, all looks good and the command is found, but not when calling like explained through PHP. Any idea on that?


EDIT: Sorry, I was not specific about the actual error. The error is something like "There were no commands found in the 'workflow' namespace." So I am definitely using Artisan Facade correctly, the issue must be deeper...

Please sign in or create an account to participate in this conversation.