includes/helpers.php
/**
	 * Returns the absolute URL with the HTTPS scheme to the relative asset path in the public directory.
	 *
	 * @param string $relativePath
	 * @return string
	 */
Returns the absolute URL with the HTTPS scheme to the relative asset path in the public directory.
@param string $relativePath
@return string
Returns the absolute URL with the HTTPS scheme to the relative asset path in the public directory . @param string $relativePath @return string
function secure_asset_url($relativePath) {
		$uri = asset($relativePath);
		$url = request()->url($uri);
		$parts = parse_url($url);
		return sprintf(
			'https://%s%s',
			$parts['host'],
			$parts['path']
		);
	}
function secure_asset_url ( $ relativePath ) { $ uri = asset ( $ relativePath ) ; $ url = request ( ) -> url ( $ uri ) ; $ parts = parse_url ( $ url ) ; return sprintf ( 'https://%s%s' , $ parts [ 'host' ] , $ parts [ 'path' ] ) ; }
Returns the absolute URL with the HTTPS scheme to the relative asset path in the public directory.
Returns the absolute URL with the HTTPS scheme to the relative asset path in the public directory .