Configuration File
Cron Jobs
The [[cronjobs]]
section is used to define scheduled tasks that run at a specific time or interval.
Each cron job is defined as a separate [[cronjobs]]
table.
# Configuration file with a cronjobs section
app = 'myapp'
[[cronjobs]]
name = 'scheduler'
schedule = '* * * * *'
command = 'php artisan schedule:run'
name
The name of the cron job.
schedule
The schedule for the cron job in cron format.
command
The command to execute.