| @@ 36-52 (lines=17) @@ | ||
| 33 | * |
|
| 34 | * @return bool |
|
| 35 | */ |
|
| 36 | protected function shouldPassThrough($request) |
|
| 37 | { |
|
| 38 | $excepts = config('admin.auth.excepts', [ |
|
| 39 | 'auth/login', |
|
| 40 | 'auth/logout', |
|
| 41 | ]); |
|
| 42 | ||
| 43 | return collect($excepts) |
|
| 44 | ->map('admin_base_path') |
|
| 45 | ->contains(function ($except) use ($request) { |
|
| 46 | if ($except !== '/') { |
|
| 47 | $except = trim($except, '/'); |
|
| 48 | } |
|
| 49 | ||
| 50 | return $request->is($except); |
|
| 51 | }); |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| @@ 85-101 (lines=17) @@ | ||
| 82 | * |
|
| 83 | * @return bool |
|
| 84 | */ |
|
| 85 | protected function shouldPassThrough($request) |
|
| 86 | { |
|
| 87 | $excepts = config('admin.auth.excepts', [ |
|
| 88 | 'auth/login', |
|
| 89 | 'auth/logout', |
|
| 90 | ]); |
|
| 91 | ||
| 92 | return collect($excepts) |
|
| 93 | ->map('admin_base_path') |
|
| 94 | ->contains(function ($except) use ($request) { |
|
| 95 | if ($except !== '/') { |
|
| 96 | $except = trim($except, '/'); |
|
| 97 | } |
|
| 98 | ||
| 99 | return $request->is($except); |
|
| 100 | }); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||