public function prefix(bool $forceBase = false): string
    {
        $pattern = \trim($this->prefix, '/');

        if (\is_null($this->domain) && $forceBase === true) {
            $pattern = \trim($this->basePrefix, '/')."/{$pattern}";
            $pattern = \trim($pattern, '/');
        }

        empty($pattern) && $pattern = '/';

        return $pattern;
    }
public function prefix(bool $forceBase = false): string
    {
        $pattern = \trim($this->prefix, '/');

        if (\is_null($this->domain) && $forceBase === true) {
            $pattern = \trim($this->basePrefix, '/')."/{$pattern}";
            $pattern = \trim($pattern, '/');
        }

        empty($pattern) && $pattern = '/';

        return $pattern;
    }
public function prefix ( bool $ forceBase = false ) : string { $ pattern = \ trim ( $ this -> prefix , '/' ) ; if ( \ is_null ( $ this -> domain ) && $ forceBase === true ) { $ pattern = \ trim ( $ this -> basePrefix , '/' ) . "/{$pattern}" ; $ pattern = \ trim ( $ pattern , '/' ) ; } empty ( $ pattern ) && $ pattern = '/' ; return $ pattern ; }
Get route prefix.

@param  bool  $forceBase

@return string
Get route prefix .