Issue when calling an Artisan command within install process
Closed this issue · 0 comments
gaetan-hexadog commented
Hello,
I'm trying to call an artisan command during my package installation process with the following code:
$package
->name('my-package')
->hasInstallCommand(function(InstallCommand $command) {
$command->call('vendor:publish', [
'--provider' => 'Spatie\Tags\TagsServiceProvider',
'--tag' => 'tags-migrations'
]);
});
but I encounter the following error:
In CallsCommands.php line 63:
Illuminate\Console\Command::runCommand(): Argument #3 ($output) must be of type Symfony\Component\Console\Output\Output
Interface, null given, called in .../vendor/laravel/framework/src/Illuminate/Console/
Concerns/CallsCommands.php on line 28