GeoIP add

This commit is contained in:
2024-01-19 19:15:14 +01:00
parent 670ae0c5e1
commit dc50d84d48
6 changed files with 267 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Http\Controllers;
use App\Models\IkeaProducts;
use Illuminate\Http\Request;
class GeoIPController extends Controller
{
public function index(Request $request, $ip = null)
{
return (array)geoip($ip = null)->getLocation();
}
}