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