2021-07-30 19:26:02 +02:00
|
|
|
<?php
|
|
|
|
|
2023-05-07 17:02:00 +02:00
|
|
|
/** @noinspection PropertyInitializationFlawsInspection */
|
|
|
|
|
2021-07-30 19:26:02 +02:00
|
|
|
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
|
|
|
|
*/
|
2023-05-07 17:02:00 +02:00
|
|
|
protected $commands = [];
|
2021-07-30 19:26:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*/
|
2021-08-03 19:43:16 +02:00
|
|
|
protected function schedule(Schedule $schedule): void
|
2021-07-30 19:26:02 +02:00
|
|
|
{
|
|
|
|
// $schedule->command('inspire')->hourly();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the commands for the application.
|
|
|
|
*/
|
2021-08-03 19:43:16 +02:00
|
|
|
protected function commands(): void
|
2021-07-30 19:26:02 +02:00
|
|
|
{
|
|
|
|
$this->load(__DIR__.'/Commands');
|
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
}
|
|
|
|
}
|