GeoIP add
This commit is contained in:
14
app/Http/Controllers/GeoIPController.php
Normal file
14
app/Http/Controllers/GeoIPController.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user