ldc-nature-and-respect/app/Console/Kernel.php

36 lines
826 B
PHP
Raw Permalink Normal View History

2022-11-18 12:39:03 +01:00
<?php
namespace App\Console;
2023-09-13 08:54:41 +02:00
use App\Jobs\NewsStatusUpdate;
2023-04-20 12:16:20 +00:00
use App\Jobs\SlidersStatusUpdate;
2022-11-18 12:39:03 +01:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
2022-11-18 15:35:39 +01:00
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2022-11-18 12:39:03 +01:00
* @return void
*/
protected function schedule(Schedule $schedule)
{
2023-04-20 12:16:20 +00:00
$schedule->job(SlidersStatusUpdate::class)->everyMinute();
2023-09-13 08:54:41 +02:00
$schedule->job(NewsStatusUpdate::class)->everyMinute();
2022-11-18 12:39:03 +01:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
2022-11-18 15:35:39 +01:00
$this->load(__DIR__ . '/Commands');
2022-11-18 12:39:03 +01:00
require base_path('routes/console.php');
}
}