purityselect/app/Console/Kernel.php
2024-10-25 01:05:27 +05:00

29 lines
688 B
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('app:send15-min-alert-appointment')->everyMinute();
$schedule->command('app:send1-min-alert-appointment')->everyFifteenMinutes();
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}
}