Schedule Command from Packages

Posted on Updated on by Gergő D. Nagy

Sometimes, during developing a package we need to schedule commands from our package’s service provider. We can do the following to schedule commands as we do in the command kernel:

use Illuminate\Console\Scheduling\Schedule;

// Schedule the commands in the boot method
$this->app->booted(function ($app) {

Looking for web dev job?
You can check them on Jooble.

Need a web developer? Maybe we can help, get in touch!