2FAuth/app/Console/Kernel.php
2023-08-01 11:26:58 +02:00

34 lines
717 B
PHP

<?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.
*
* @return void
*
* @codeCoverageIgnore Because no code will always remains Not Executed code
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('cache:prune-stale-tags')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}
}