Fixes for shared hosting

This commit is contained in:
Nabeel Shahzad
2017-12-23 10:15:18 -06:00
parent 07bcc5f199
commit f59d372f2b
4 changed files with 17 additions and 21 deletions

View File

@@ -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);