Last active
July 10, 2025 06:20
-
-
Save erdum/fc7dab3427b872865c35a638ccc3e061 to your computer and use it in GitHub Desktop.
Get User Region Data from Request IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Torann\GeoIP\Facades\GeoIP; | |
$location = GeoIP::getLocation(request()->ip()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment