ldc-crm/app/Console/Kernel.php

43 lines
884 B
PHP
Raw Normal View History

2020-12-01 17:02:10 +01:00
<?php
namespace App\Console;
use App\Jobs\StartStatJobs;
2020-12-01 17:02:10 +01:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
2021-03-14 10:45:42 +01:00
2020-12-01 17:02:10 +01:00
/**
* The Artisan commands provided by your application.
*
* @var array
*/
2021-07-22 15:14:07 +02:00
protected $commands = [];
2020-12-01 17:02:10 +01:00
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// stats job on night
$schedule->job(StartStatJobs::class)->dailyAt('03:30');
2020-12-01 17:02:10 +01:00
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
2020-12-01 17:02:10 +01:00
require base_path('routes/console.php');
}
}