Added scheduling for speedtest

This commit is contained in:
Henry Whitaker
2020-04-08 19:06:13 +01:00
parent 6daade8382
commit c2c418947c
5 changed files with 33 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Console;
use App\Helpers\SpeedtestHelper;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@@ -24,7 +25,9 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
$schedule->call(function() {
SpeedtestHelper::runSpeedtest();
})->hourly();
}
/**