@@ -16,13 +16,13 @@ |
||
16 | 16 | */ |
17 | 17 | public function handle($request, Closure $next, $guard = null, $field = null) |
18 | 18 | { |
19 | - $ipsAuth = env('BASIC_AUTH_IP',''); |
|
20 | - $ipsAuth = explode(',',$ipsAuth); |
|
19 | + $ipsAuth = env('BASIC_AUTH_IP', ''); |
|
20 | + $ipsAuth = explode(',', $ipsAuth); |
|
21 | 21 | |
22 | 22 | |
23 | - if (env('BASIC_AUTH',false) == true) |
|
23 | + if (env('BASIC_AUTH', false) == true) |
|
24 | 24 | { |
25 | - if(empty($ipsAuth) || !in_array($request->ip(),$ipsAuth)) |
|
25 | + if (empty($ipsAuth) || !in_array($request->ip(), $ipsAuth)) |
|
26 | 26 | { |
27 | 27 | return $this->auth->guard($guard)->basic() ?: $next($request); |
28 | 28 | } |