Files
speedtest-tracker/app/Console/Kernel.php
T
Alex Justesen b29290913a Laravel 10.x Shift (#576)
Co-authored-by: Shift <shift@laravelshift.com>
2023-05-07 11:22:45 -04:00

33 lines
761 B
PHP

<?php
namespace App\Console;
use App\Jobs\SearchForSpeedtests;
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
{
$schedule->job(new SearchForSpeedtests())->everyMinute();
// $schedule->command('inspire')
// ->everyMinute()
// ->appendOutputTo(storage_path('logs/inspire.log'));
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}