| @@ 35-53 (lines=19) @@ | ||
| 32 | * |
|
| 33 | * @return bool |
|
| 34 | */ |
|
| 35 | protected function shouldPassThrough($request) |
|
| 36 | { |
|
| 37 | $excepts = [ |
|
| 38 | admin_base_path('auth/login'), |
|
| 39 | admin_base_path('auth/logout'), |
|
| 40 | ]; |
|
| 41 | ||
| 42 | foreach ($excepts as $except) { |
|
| 43 | if ($except !== '/') { |
|
| 44 | $except = trim($except, '/'); |
|
| 45 | } |
|
| 46 | ||
| 47 | if ($request->is($except)) { |
|
| 48 | return true; |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||
| 52 | return false; |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| @@ 81-99 (lines=19) @@ | ||
| 78 | * |
|
| 79 | * @return bool |
|
| 80 | */ |
|
| 81 | protected function shouldPassThrough($request) |
|
| 82 | { |
|
| 83 | $excepts = [ |
|
| 84 | admin_base_path('auth/login'), |
|
| 85 | admin_base_path('auth/logout'), |
|
| 86 | ]; |
|
| 87 | ||
| 88 | foreach ($excepts as $except) { |
|
| 89 | if ($except !== '/') { |
|
| 90 | $except = trim($except, '/'); |
|
| 91 | } |
|
| 92 | ||
| 93 | if ($request->is($except)) { |
|
| 94 | return true; |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||
| 98 | return false; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||