File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ public function __construct(
21
21
22
22
public function handle (): void
23
23
{
24
- $ endpoint = config ('security-notifications.ip_api_key ' )
24
+ $ endpoint = config ('security-notifications.ip-api-key ' )
25
25
? 'https://pro.ip-api.com/json/ '
26
26
: 'https://ip-api.com/json/ ' ;
27
27
28
28
$ ipLocationData = Http::retry (3 )
29
- ->withQueryParameters (['key ' => config ('security-notifications.ip_api_key ' )])
29
+ ->withQueryParameters (['key ' => config ('security-notifications.ip-api-key ' )])
30
30
->get ($ endpoint .$ this ->ipAddress )
31
31
?->json();
32
32
Original file line number Diff line number Diff line change 274
274
it ('uses pro endpoint if api key is set ' , function () {
275
275
Bus::fake ();
276
276
277
- Config::set ('security-notifications.ip_api_key ' , 'test-key ' );
277
+ Config::set ('security-notifications.ip-api-key ' , 'test-key ' );
278
278
279
279
$ user = User::factory ()->create ();
280
280
You can’t perform that action at this time.
0 commit comments