Conditions | 6 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | { |
||
12 | /* |
||
13 | if ( |
||
14 | auth()->check() && |
||
15 | ! auth()->user()->hasAcceptedTerms() && |
||
16 | ! in_array($request->path(), config('terms.excluded_paths')) |
||
17 | ) { |
||
18 | session(['url.intended' => $request->url()]); |
||
19 | return redirect()->route('terms.show'); |
||
20 | } |
||
21 | */ |
||
22 | |||
23 | return $next($request); |
||
24 | } |
||
25 | } |
||
26 |