Schedule Command from Packages

LaravelPosted on

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) {

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

Similar Posts

More content in Laravel category