wzq 6 år sedan
förälder
incheckning
c689041cce
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Helper/helper.php

+ 1 - 1
app/Helper/helper.php

@@ -26,6 +26,6 @@ if (! function_exists('public_path')) {
      */
     function public_path($path = '')
     {
-        return app()->make('path.public').($path ? DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR) : $path);
+        return app()->basePath() . '/public' . ($path ? '/' . $path : $path);
     }
 }