Schedule SendWeeklyReports job weekly
MODIFY
app/Console/Kernel.php
app/Console/Kernel.php
namespace App\Console;
use App\Jobs\ProcessRecurrings;
+use App\Jobs\SendWeeklyReports;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@@ -29,6 +30,8 @@ class Kernel extends ConsoleKernel
// ->hourly();
$schedule->job(new ProcessRecurrings)->everyMinute();
+
+ $schedule->job(new SendWeeklyReports)->weekly()->fridays()->at('21:00');
}
/**

Schedule SendWeeklyReports job weekly