protected function processRoutesGroup(&$stub, $prefix, $namespace)
    {
        $prefix = trim($prefix);

        if (!empty($prefix) || !empty($namespace)) {
            $groupStub = $this->getStubContent('routes-group');

            $this->replacePrefix($groupStub, $this->getGroupPrefix($prefix))
                ->replaceRoutes($groupStub, $stub);

            $stub = $groupStub;
        }

        return $this;
    }
protected function processRoutesGroup(&$stub, $prefix, $namespace)
    {
        $prefix = trim($prefix);

        if (!empty($prefix) || !empty($namespace)) {
            $groupStub = $this->getStubContent('routes-group');

            $this->replacePrefix($groupStub, $this->getGroupPrefix($prefix))
                ->replaceRoutes($groupStub, $stub);

            $stub = $groupStub;
        }

        return $this;
    }
protected function processRoutesGroup ( & $ stub , $ prefix , $ namespace ) { $ prefix = trim ( $ prefix ) ; if ( ! empty ( $ prefix ) || ! empty ( $ namespace ) ) { $ groupStub = $ this -> getStubContent ( 'routes-group' ) ; $ this -> replacePrefix ( $ groupStub , $ this -> getGroupPrefix ( $ prefix ) ) -> replaceRoutes ( $ groupStub , $ stub ) ; $ stub = $ groupStub ; } return $ this ; }
Groups the routes with a prefix and namespace if prefix or namespace is provided.

@param string $stub
@param string $prefix
@param string $namespace

@return $this
Groups the routes with a prefix and namespace if prefix or namespace is provided .