Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handle($request, Closure $next) |
||
18 | { |
||
19 | if (! app('settings')->withinExchangePeriod()) { |
||
20 | flash('The exchanges period is closed. You are not allowed to perform this action.')->error(); |
||
21 | |||
22 | return redirect()->route('dashboard'); |
||
23 | } |
||
24 | |||
25 | return $next($request); |
||
26 | } |
||
28 |