diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index b0f2144..697f930 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -16,7 +16,6 @@ use Illuminate\Support\Facades\Cache; use Laravel\Lumen\Routing\Controller; use Laravel\Socialite\Facades\Socialite; use Illuminate\Session\TokenMismatchException; -use phpDocumentor\Reflection\Location; use Symfony\Component\HttpFoundation\Response; class AuthController extends Controller @@ -256,8 +255,8 @@ class AuthController extends Controller 'agent' => request()->getAgent(), 'ip' => request()->getClientIp(), 'os' => request()->getOS(), - 'latitude' => 5, - 'longitude' => 5, + 'latitude' => \request()->getLocation()->getAttribute('lat'), + 'longitude' => \request()->getLocation()->getAttribute('lon'), ]; $values = [ diff --git a/config/geoip.php b/config/geoip.php index 0c812fc..62925df 100644 --- a/config/geoip.php +++ b/config/geoip.php @@ -131,7 +131,7 @@ return [ | */ -// 'cache_tags' => [''], + 'cache_tags' => [], /* |--------------------------------------------------------------------------