mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:00:08 +00:00
39 lines
757 B
PHP
39 lines
757 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\ExecSpeedtest;
|
|
use Illuminate\Console\Command;
|
|
|
|
class RunSpeedtest extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'app:speedtest
|
|
{server? : Specify a server to run the test against}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Run a speedtest using Speedtest by Ookla';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
ExecSpeedtest::dispatch();
|
|
|
|
$this->info('✅ added manual speedtest to the queue');
|
|
|
|
return 0;
|
|
}
|
|
}
|