protected function addRouteMiddleware($routeMiddleware)
    {
        if (is_array($routeMiddleware) && (count($routeMiddleware) > 0)) {
            foreach ($routeMiddleware as $key => $middleware) {
                $this->middleware($key, $middleware);
            }
        }
    }
protected function addRouteMiddleware($routeMiddleware)
    {
        if (is_array($routeMiddleware) && (count($routeMiddleware) > 0)) {
            foreach ($routeMiddleware as $key => $middleware) {
                $this->middleware($key, $middleware);
            }
        }
    }
protected function addRouteMiddleware ( $ routeMiddleware ) { if ( is_array ( $ routeMiddleware ) && ( count ( $ routeMiddleware ) > 0 ) ) { foreach ( $ routeMiddleware as $ key => $ middleware ) { $ this -> middleware ( $ key , $ middleware ) ; } } }
Add middleware to the router.

@param array $routeMiddleware
Add middleware to the router .