2024-05-24 07:55:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
2024-05-27 07:15:51 +00:00
|
|
|
use App\Console\Commands\HandleNotice;
|
2024-05-24 07:55:55 +00:00
|
|
|
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
|
|
|
|
{
|
2024-05-27 07:15:51 +00:00
|
|
|
$schedule->command(HandleNotice::class)->everyFiveSeconds()->withoutOverlapping();
|
|
|
|
//->appendOutputTo('crontab.log');
|
2024-05-24 07:55:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the commands for the application.
|
|
|
|
*/
|
|
|
|
protected function commands(): void
|
|
|
|
{
|
2024-05-27 07:15:51 +00:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2024-05-24 07:55:55 +00:00
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
}
|
|
|
|
}
|