Move DB queries into jobs, so that the scheduler and artisan command calls doesnt evaluate them until the job is actually run
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
use App\Jobs\BroadbandTraffic;
|
||||
use App\Models\Supplier;
|
||||
|
||||
Schedule::job(new BroadbandTraffic(Supplier::find(1)))
|
||||
Schedule::job(new BroadbandTraffic(1))
|
||||
->timezone('Australia/Melbourne')
|
||||
->dailyAt('10:00');
|
||||
->dailyAt('10:00');
|
||||
|
Reference in New Issue
Block a user