Conditions | 4 |
Paths | 5 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function shouldPassThrough($request) |
||
35 | { |
||
36 | $excepts = [ |
||
37 | backend_base_path('auth/login'), |
||
38 | backend_base_path('auth/logout'), |
||
39 | ]; |
||
40 | |||
41 | foreach ($excepts as $except) { |
||
42 | if ($except !== '/') { |
||
43 | $except = trim($except, '/'); |
||
44 | } |
||
45 | |||
46 | if ($request->is($except)) { |
||
|
|||
47 | return true; |
||
48 | } |
||
49 | } |
||
50 | |||
51 | return false; |
||
52 | } |
||
54 |