/** * Prefix the given URI with the last prefix. * * @param string $uri * * @return string */ protected function prefix($uri) { if ($uri == $this->formatSuffix) { return trim(trim($this->getLastGroupPrefix(), '/') . trim($uri, '/'), '/') ?: '/'; } return parent::prefix($uri); }