Fixes for shared hosting
This commit is contained in:
@@ -23,6 +23,10 @@ if (!function_exists('public_asset')) {
|
||||
function public_asset($path, $parameters = [], $secure = null)
|
||||
{
|
||||
$publicBaseUrl = app()->publicUrlPath();
|
||||
if($path[0] !== '/') {
|
||||
$path = '/'.$path;
|
||||
}
|
||||
|
||||
$path = $publicBaseUrl . $path;
|
||||
|
||||
return url($path, $parameters, $secure);
|
||||
|
||||
Reference in New Issue
Block a user