Support the ongoing development of →
Queues Architecture
Last updated 2 years ago.

I think you can put it anywhere you want. If you look at the app/Console/Kernel.php file, you will see a ** protected $commands** field which is an array of available commands you want to schedule. As for your custom class, you can place it anywhere you see fit. For application commands, I usually just use the default command directory created by artisan.

In summary simply specify the full class name to your command class as the Inspire example shows. For the scheduling, you can do:


If you made your own custom class / service etc, you don't need to be making a command for each one.

->command("command arg1 arg 2 --param=value") is for artisan commands



Laravel magic will make it happen!



Sign in to participate in this thread!


Your banner here too?

VenomRush venomrush Joined 27 May 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.