ldc-mesbr-app/app/Console/Kernel.php

34 lines
735 B
PHP
Raw Normal View History

2023-09-13 16:48:17 +02:00
<?php
namespace App\Console;
2023-11-24 15:09:54 +00:00
use App\Jobs\CouponCanBeUsedUpdate;
2023-09-13 16:48:17 +02:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
2023-11-24 15:09:54 +00:00
$schedule->job(CouponCanBeUsedUpdate::class)->everyMinute();
2023-09-13 16:48:17 +02:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}
}