Files
Speedtest-Tracker/app/Console/Commands/SpeedtestOverviewCommand.php
Henry Whitaker 832a10589d Added code for notifications changes
- Toggle for notification types
- Custom time for overview
2020-06-21 20:32:31 +01:00

47 lines
908 B
PHP

<?php
namespace App\Console\Commands;
use App\Events\SpeedtestOverviewEvent;
use App\Helpers\SpeedtestHelper;
use App\Notifications\SpeedtestOverviewSlack;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Notification;
class SpeedtestOverviewCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'speedtest:overview';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Trigger a speedtest overview event';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
event(new SpeedtestOverviewEvent());
}
}