🆙 Final fix delete storage link to fix news_images and logs 🆙

This commit is contained in:
Remco
2026-01-07 20:29:24 +01:00
parent 65ea6c167f
commit acf2d7e661
447 changed files with 208 additions and 66965 deletions
@@ -1,28 +0,0 @@
<?php
namespace App\Services;
use Illuminate\Support\Facades\Http;
class IpLookupService
{
private string $baseUrl = 'https://api.ipdata.co';
public function __construct(private readonly string $apiKey) {}
public function ipLookup(string $ip)
{
$response = Http::acceptJson()->get(sprintf('%s/%s?api-key=%s', $this->baseUrl, $ip, $this->apiKey));
if (! $response->ok()) {
$message = array_key_exists('message', $response->json()) ? $response->json()['message'] : 'Unknown error';
return [
'message' => $message,
'status' => $response->status(),
];
}
return $response->json();
}
}