ldc-loue/app/Console/Kernel.php

34 lines
731 B
PHP
Raw Normal View History

2022-05-20 11:54:44 +02:00
<?php
namespace App\Console;
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-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');
}
}