From 4eb782a0c62ba567048b074745b0b3fdab9b30f1 Mon Sep 17 00:00:00 2001 From: akbarjimi Date: Wed, 3 Mar 2021 12:45:00 +0330 Subject: [PATCH] Fix cache locations --- app/Http/Controllers/AuthController.php | 5 ++--- config/geoip.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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' => [], /* |--------------------------------------------------------------------------