Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Locale |
||
10 | { |
||
11 | /** |
||
12 | * Constant for the session key for locale. |
||
13 | * |
||
14 | * @const string |
||
15 | */ |
||
16 | const SESSION_KEY = 'locale'; |
||
17 | |||
18 | /** |
||
19 | * Locale middleware handler. |
||
20 | * |
||
21 | * @param Illuminate\Http\Request $request current request |
||
|
|||
22 | * @param Closure $next Next |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function handle(Request $request, Closure $next) |
||
56 |