| 1 | <?php namespace NukaCode\Menu\Middleware;  | 
            ||
| 10 | class MenuMiddleware { | 
            ||
| 11 | /**  | 
            ||
| 12 | * Run the request filter.  | 
            ||
| 13 | *  | 
            ||
| 14 | * This middleware supports laravel 5.0 and 5.1.  | 
            ||
| 15 | * In laravel 5.0 you must specify an additional array option  | 
            ||
| 16 | * with the slug you wish to active. In 5.1 you can just add  | 
            ||
| 17 | * the slug to the middleware after menu:.  | 
            ||
| 18 | *  | 
            ||
| 19 | * @param \Illuminate\Http\Request $request  | 
            ||
| 20 | * @param \Closure $next  | 
            ||
| 21 | * @param string|null $active  | 
            ||
| 22 | *  | 
            ||
| 23 | * @return mixed  | 
            ||
| 24 | */  | 
            ||
| 25 | public function handle($request, Closure $next, $active = null)  | 
            ||
| 45 | |||
| 46 | }  |