opnform/app/helpers.php

12 lines
188 B
PHP
Raw Permalink Normal View History

<?php
function front_url($path = '')
{
$baseUrl = config('app.front_url');
2024-02-23 10:54:12 +00:00
if (! $baseUrl) {
return $path;
}
2024-02-23 10:54:12 +00:00
return rtrim($baseUrl, '/').'/'.ltrim($path, '/');
}