We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I discovered an issue when trying to execute an Artisan command within the context of the app (not the console).
An example command:
Artisan::call('tenants:artisan', [ 'artisanCommand' => "'migrate --database=tenant'", '--tenant' => 3, ]);
Returns the following error:
The command "tenants:artisan" does not exist.
I was able to temporarily fix the problem by commenting out the if ($this->app->runningInConsole()) { line of the PackageServiceProvider.php: https://github.com/spatie/laravel-package-tools/blob/master/src/PackageServiceProvider.php#L44
if ($this->app->runningInConsole()) {
PackageServiceProvider.php
Has anyone come across this issue and can you advise on a more permanent fix?
The text was updated successfully, but these errors were encountered:
I have raised a PR for the Package Tools component which I hope will resolve this issue: spatie/laravel-package-tools#23
Sorry, something went wrong.
This can now be closed since the merged PR to the spatie/laravel-package-tools project will resolve the issue.
Thanks
No branches or pull requests
I discovered an issue when trying to execute an Artisan command within the context of the app (not the console).
An example command:
Returns the following error:
I was able to temporarily fix the problem by commenting out the
if ($this->app->runningInConsole()) {
line of thePackageServiceProvider.php
: https://github.com/spatie/laravel-package-tools/blob/master/src/PackageServiceProvider.php#L44Has anyone come across this issue and can you advise on a more permanent fix?
The text was updated successfully, but these errors were encountered: