I'm trying to call a artisan command from code. The command I want to execute is a command from the pingpong package and is as follows:
php artisan module:make Test
I'm doing this with the following code:
Artisan::call('module:make Test');
The error I'm getting is: Command "module:make Test" is not defined. While this is certainly a good command.
Parameters could be given with an array like:
Artisan::call('module:make', [
'Test'
]);
But these parameters are only for flags I guess. Cause this command does nothing. No error. It just returns 0.
Same kind of question asked here: https://github.com/pingpong-labs/modules/issues/202