Schedule
Estimated reading time: 1 minuteSchedule
- call()
- command()
- job()
-
exec()
- doc
- https://stackoverflow.com/questions/30456737/how-to-schedule-artisan-commands-in-a-package
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