src/Config.php
public function appendRoute(Route $route)
    {
        if (!$originalRoute = optional($this->routes)[$route->slug()]) {
            return "Route {$route->slug()} not found";
        }

        return $this->routes[$route->slug()]['groups'] =
            $originalRoute['groups']->merge($route->get()['groups']);
    }
public function appendRoute(Route $route)
    {
        if (!$originalRoute = optional($this->routes)[$route->slug()]) {
            return "Route {$route->slug()} not found";
        }

        return $this->routes[$route->slug()]['groups'] =
            $originalRoute['groups']->merge($route->get()['groups']);
    }
public function appendRoute ( Route $ route ) { if ( ! $ originalRoute = optional ( $ this -> routes ) [ $ route -> slug ( ) ] ) { return "Route {$route->slug()} not found" ; } return $ this -> routes [ $ route -> slug ( ) ] [ 'groups' ] = $ originalRoute [ 'groups' ] -> merge ( $ route -> get ( ) [ 'groups' ] ) ; }
Append additional groups to an existing Route

@param Agencms\Core\Route $route
@return Illuminate\Support\Collection
Append additional groups to an existing Route