More updates for laravel 11

This commit is contained in:
2024-11-04 18:25:49 +11:00
parent 0bd2f6e82c
commit dc2e84386f
50 changed files with 870 additions and 1320 deletions

View File

@@ -1,18 +1,24 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Schedule;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
use App\Jobs\AddressIdleDomain;
use App\Jobs\MailSend;
use App\Jobs\SystemHeartbeat;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
Schedule::job(new MailSend(TRUE))
->timezone('Australia/Melbourne')
->everyMinute()
->withoutOverlapping();
Schedule::job(new MailSend(FALSE))
->timezone('Australia/Melbourne')
->twiceDaily(1,13);
Schedule::job(new SystemHeartbeat)
->timezone('Australia/Melbourne')
->hourly();
Schedule::job(new AddressIdleDomain)
->timezone('Australia/Melbourne')
->weeklyOn(0,'01:00');