Skip to content
New issue

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

Artisan::call('debugbar:clear') returns The command "debugbar:clear" does not exist #1409

Open
mariopro opened this issue Mar 21, 2023 · 3 comments
Labels

Comments

@mariopro
Copy link

When attempting to use the Artisan::call('debugbar:clear'); it returns an error "The command "debugbar:clear" does not exist". Yet, if the above is called via artisan tinker > Artisan::call('debugbar:clear'); it works the same way like php debugbar:clear in the command line.

This error only happens when the command is triggered with Artisan::call('debugbar:clear') through, for instance, a controller method. A few examples of working calls via controller method: Artisan::call('clockwork:clean');, Artisan::call('view:clear');

Tested in Laravel 7, 8, 9, and 10, PHP 7.4.x, and 8.1.x. The error persists only as described above.

@SachinBahukhandi
Copy link
Contributor

Any updates on this thread? Is the package accepting PRs?

@SachinBahukhandi
Copy link
Contributor

PR raised for the same: #1409

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

@stale stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants