Schedule

Estimated reading time: 1 minute

Schedule

use Illuminate\Support\ServiceProvider;
use Illuminate\Console\Scheduling\Schedule;

class ScheduleServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->app->booted(function () {
            $schedule = $this->app->make(Schedule::class);
            $schedule->command('some:command')->everyMinute();
        });
    }

    public function register()
    {
    }
}
  • https://github.com/code-orange/statuspage/blob/master/src/Statuspage.php

  • https://stackoverflow.com/questions/35834681/laravel-5-package-scheduled-tasks

  • https://github.com/codestudiohq/laravel-totem