Fix Geoip controller

This commit is contained in:
2024-01-20 20:49:28 +01:00
parent d0208384ad
commit c3857fce68
2 changed files with 6 additions and 3 deletions

View File

@@ -9,6 +9,6 @@ class GeoIPController extends Controller
{
public function index(Request $request, $ip = null)
{
return (array)geoip($ip = null)->getLocation();
return geoip($ip)->getLocation()->toArray();
}
}