-
Notifications
You must be signed in to change notification settings - Fork 440
Laravel commands not working #1377
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
Comments
Thanks for reporting this! A PR to fix this would be greatly appreciated. |
I create a PR to fix it |
Hello over here, sorry for the spam. I created one last PR in order to fix all Laravel commands as rolling back the last PR as it was causing another issue Would be amazing if you guys could take a look at it! 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I've been using Laravel 11 and running the
php artisan
command fails and results in the following message:The command defined in "Enqueue\LaravelQueue\Command\SetupBrokerCommand" cannot have an empty name.
.Looks like implementing the
AsCommand
attributes to the Symfony commands broke the Laravel commands. The reason for that gotta be the fact that Laravel commands are extended from the base Symfony classes, where theAsCommand
attribute is defined and therefore their name cannot be resolved. Creating custom commands that extend the default Laravel commands and implement theAsCommand
attribute fixes this problem, but it would be nice to have that working properly out-of-the-box though.The text was updated successfully, but these errors were encountered: