Added code for notifications changes

- Toggle for notification types
- Custom time for overview
This commit is contained in:
Henry Whitaker
2020-06-21 20:32:31 +01:00
parent 8b9e87e699
commit 832a10589d
18 changed files with 613 additions and 37 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Console;
use App\Events\SpeedtestOverviewEvent;
use App\Helpers\SettingsHelper;
use App\Helpers\SpeedtestHelper;
use App\Jobs\SpeedtestJob;
@@ -28,6 +29,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->job(new SpeedtestJob)->cron(SettingsHelper::get('schedule')['value']);
$schedule->command('speedtest:overview')->cron('0 ' . SettingsHelper::get('speedtest_overview_time')->value . ' * * *');
}
/**