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

Laravel commands not working #1377

Open
wskz-adam opened this issue Mar 17, 2025 · 1 comment
Open

Laravel commands not working #1377

wskz-adam opened this issue Mar 17, 2025 · 1 comment

Comments

@wskz-adam
Copy link

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 the AsCommand attribute is defined and therefore their name cannot be resolved. Creating custom commands that extend the default Laravel commands and implement the AsCommand attribute fixes this problem, but it would be nice to have that working properly out-of-the-box though.

@makasim
Copy link
Member

makasim commented Mar 19, 2025

Thanks for reporting this! A PR to fix this would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants