title(__('settings/notifications.test_notifications.webhook.add')) ->warning() ->send(); return; } // Generate a fake Result (NOT saved to database) $fakeResult = SpeedtestFakeResultGenerator::completed(); foreach ($webhooks as $webhook) { WebhookCall::create() ->url($webhook['url']) ->payload([ 'result_id' => Str::uuid(), 'site_name' => __('settings/notifications.test_notifications.webhook.payload'), 'isp' => $fakeResult->data['isp'], 'ping' => $fakeResult->ping, 'download' => $fakeResult->download, 'upload' => $fakeResult->upload, 'packetLoss' => $fakeResult->data['packetLoss'], 'speedtest_url' => $fakeResult->data['result']['url'], 'url' => url('/admin/results'), ]) ->doNotSign() ->dispatch(); } Notification::make() ->title(__('settings/notifications.test_notifications.webhook.sent')) ->success() ->send(); } }