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

34 lines
744 B
PHP
Raw Permalink Normal View History

2023-09-13 16:48:17 +02:00
<?php
namespace App\Console;
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 20:26:29 +01:00
$schedule->job(new PurgeCouponsPdf())->hourly();
$schedule->job(new CouponsCanBeUsed())->daily();
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');
}
}