Browse Source

Fix cache locations

pull/2/head
Mohammad Akbari 4 years ago
parent
commit
4eb782a0c6
Signed by: akbarjimi GPG Key ID: 55726AEFECE5E683
  1. 5
      app/Http/Controllers/AuthController.php
  2. 2
      config/geoip.php

5
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 = [

2
config/geoip.php

@ -131,7 +131,7 @@ return [
|
*/
// 'cache_tags' => [''],
'cache_tags' => [],
/*
|--------------------------------------------------------------------------

Loading…
Cancel
Save