ldc-loue/app/Console/Kernel.php

38 lines
931 B
PHP
Raw Permalink Normal View History

2022-05-20 11:54:44 +02:00
<?php
namespace App\Console;
2022-07-18 08:24:42 +00:00
use App\Jobs\RangesStatusUpdate;
use App\Jobs\ProductStatusUpdate;
use App\Jobs\SlidersStatusUpdate;
2022-05-20 11:54:44 +02:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
2022-06-01 13:41:24 +02:00
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2022-05-20 11:54:44 +02:00
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->job(SlidersStatusUpdate::class)->everyMinute();
2022-07-18 08:24:42 +00:00
$schedule->job(RangesStatusUpdate::class)->everyMinute();
$schedule->job(ProductStatusUpdate::class)->everyMinute();
2022-05-20 11:54:44 +02:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
2022-06-01 13:41:24 +02:00
$this->load(__DIR__ . '/Commands');
2022-05-20 11:54:44 +02:00
require base_path('routes/console.php');
}
}