ldc-gen-game-web/app/Console/Kernel.php

40 lines
829 B
PHP
Raw Normal View History

2020-10-21 15:26:21 +02:00
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [];
2020-10-21 15:26:21 +02:00
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2020-10-21 15:26:21 +02:00
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->job(DeleteOldCustomers::class)->dailyAt('22:50');
2020-10-21 15:26:21 +02:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
2021-08-18 17:08:02 +02:00
$this->load(__DIR__ . '/Commands');
2020-10-21 15:26:21 +02:00
require base_path('routes/console.php');
}
}