More updates for laravel 11
This commit is contained in:
@@ -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');
|
Reference in New Issue
Block a user