22 lines
740 B
PHP
22 lines
740 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
// Tasks starting on the next working day: notify their assignees and members in the afternoon.
|
|
Schedule::command('notifications:task-starts')
|
|
->dailyAt('14:00')
|
|
->timezone((string) config('app.business_timezone'))
|
|
->onOneServer();
|
|
|
|
// Maintenance coming up or late: notify each machine's responsible person in the morning.
|
|
Schedule::command('notifications:maintenance-due')
|
|
->dailyAt('07:00')
|
|
->timezone((string) config('app.business_timezone'))
|
|
->onOneServer();
|