mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:20:09 +00:00
b29290913a
Co-authored-by: Shift <shift@laravelshift.com>
33 lines
761 B
PHP
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');
|
|
}
|
|
}
|