src/Route.php
public static function load(string $slug)
    {
        $instance = new static();

        $instance->route = [];
        $instance->route['slug'] = $slug;
        $instance->route['groups'] = collect([]);

        return $instance;
    }
public static function load(string $slug)
    {
        $instance = new static();

        $instance->route = [];
        $instance->route['slug'] = $slug;
        $instance->route['groups'] = collect([]);

        return $instance;
    }
public static function load ( string $ slug ) { $ instance = new static ( ) ; $ instance -> route = [ ] ; $ instance -> route [ 'slug' ] = $ slug ; $ instance -> route [ 'groups' ] = collect ( [ ] ) ; return $ instance ; }
Creates a new Route instance for merging into an existing route collection

@param string $slug
@return Agencms\Core\Route
Creates a new Route instance for merging into an existing route collection