src/Common/Helper/Url.php
public static function siteUrl(string $sUrl = null, bool $bForceSecure = false): string
    {
        $oConfig = \Nails\Factory::service('Config');
        return $oConfig::siteUrl($sUrl, $bForceSecure);
    }
public static function siteUrl(string $sUrl = null, bool $bForceSecure = false): string
    {
        $oConfig = \Nails\Factory::service('Config');
        return $oConfig::siteUrl($sUrl, $bForceSecure);
    }
public static function siteUrl ( string $ sUrl = null , bool $ bForceSecure = false ) : string { $ oConfig = \ Nails \ Factory :: service ( 'Config' ) ; return $ oConfig :: siteUrl ( $ sUrl , $ bForceSecure ) ; }
Create a local URL based on your basepath. Segments can be passed via the
first parameter either as a string or an array.

@param mixed $sUrl         URI segments, either as a string or an array
@param bool  $bForceSecure Whether to force the url to be secure or not

@return string
Create a local URL based on your basepath . Segments can be passed via the first parameter either as a string or an array .