wzq 6 年之前
父節點
當前提交
c689041cce
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
     }
 }