Custom artisan command in module?



  • Hi, i'm new to laravel/asgard, so probably it is a silly question with a trivial solution, but i can't find it anywhere online.

    I would like to create a new custom artisan command insie a module, since what the command does is strictly related to the module content/meaning.

    I created a new command with make:command and moved it from the default path to my module, so i have
    MyAsgardProject/Modules/MyModule/Console/Commands/MyNewCommand.php
    with the signature
    MyModule:command
    but when i try to run it with artisan MyModule:command all i got is an "There are no commands defined in the "MyModule" namespace."

    Switching from Laravel to Asgard i missed the command registration part of the workflow.


Log in to reply
 

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.