Kundesone/app/Console/Kernel.php

30 lines
713 B
PHP
Raw Permalink Normal View History

2024-06-26 12:28:46 +00: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.
*/
protected function schedule(Schedule $schedule): void
{
2024-08-01 17:26:06 +00:00
$schedule->command('chatgroup:check-status')->everyMinute();
2024-10-08 12:30:49 +00:00
$schedule->command('users:update-last-online')->everyMinute();
2024-06-26 12:28:46 +00:00
// $schedule->command('inspire')->hourly();
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}