أتمتة المهام بالمجدول:
تعريف الجدول
protected function schedule(Schedule $schedule)
{
$schedule->command('emails:send')->daily();
$schedule->job(new CleanupJob)->hourly();
}خيارات التكرار
$schedule->command('report:generate')
->weeklyOn(1, '8:00')
->timezone('America/New_York');
$schedule->command('backup:run')
->dailyAt('03:00')
->evenInMaintenanceMode();منع التداخل
$schedule->command('process:data')
->hourly()
->withoutOverlapping();تشغيل المجدول
* * * * * cd /path && php artisan schedule:run >> /dev/null 2>&1