Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 998 Bytes

scheduling.md

File metadata and controls

40 lines (33 loc) · 998 Bytes

Scheduling

To use the scheduling you need to run the laravel scheduler, see the laravel documentation about running the scheduler here.

You can configure the frequency in the config file under the schedule key. The default is once a day at midnight.

'schedule' => [
    'frequency' => 'daily',
    // 'time' => '03:00',
],

Frequency can be any of the methods found here.

Time then equals whatever you want to pass to that "frequency" method.

Examples

  • Every three hours at the 30th minute
    'schedule' => [
        'frequency' => 'everyThreeHours',
        'time' => 30,
    ],
  • Every week on Monday at 8:00
    'schedule' => [
        'frequency' => 'weeklyOn',
        'time' => 1, '8:00',
    ],
  • Custom cron schedule
    'schedule' => [
        'frequency' => 'cron',
        'time' => '* * * * *',
    ],