private function getProtectedRoutes()
    {
        $protected = new Collection();
        $routes = RouteList::instance()->getRoutes();

        foreach ($routes as $route) {
            if ($route['middleware']->has('acl') || $route['middleware']->search('acl', true) !== false) {
                $protected->put($route['resource'], new Collection($route));
            }
        }

        return $protected;
    }
private function getProtectedRoutes()
    {
        $protected = new Collection();
        $routes = RouteList::instance()->getRoutes();

        foreach ($routes as $route) {
            if ($route['middleware']->has('acl') || $route['middleware']->search('acl', true) !== false) {
                $protected->put($route['resource'], new Collection($route));
            }
        }

        return $protected;
    }
private function getProtectedRoutes ( ) { $ protected = new Collection ( ) ; $ routes = RouteList :: instance ( ) -> getRoutes ( ) ; foreach ( $ routes as $ route ) { if ( $ route [ 'middleware' ] -> has ( 'acl' ) || $ route [ 'middleware' ] -> search ( 'acl' , true ) !== false ) { $ protected -> put ( $ route [ 'resource' ] , new Collection ( $ route ) ) ; } } return $ protected ; }
Get protected routes only

@return Collection
Get protected routes only