Skip to content

Laravel commands not working #1377

Closed
Closed
@wskz-adam

Description

@wskz-adam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions