Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function handle($request, Closure $next) |
||
18 | { |
||
19 | // If the URL of the request is in exceptions. |
||
20 | if ($this->shouldIgnore($request)) { |
||
21 | return $next($request); |
||
22 | } |
||
23 | |||
24 | $app = app(); |
||
25 | |||
26 | $routeName = $app['laravellocalization']->getRouteNameFromAPath($request->getUri()); |
||
27 | |||
28 | $app['laravellocalization']->setRouteName($routeName); |
||
29 | |||
30 | return $next($request); |
||
31 | } |
||
32 | } |
||
33 |