浏览代码

Merge pull request #398 from DaazKu/fix/lumen-path

Replace config_path() by generic code
Shalvah 6 年之前
父节点
当前提交
7d4e6f3d87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ApiDocGeneratorServiceProvider.php

+ 1 - 1
src/ApiDocGeneratorServiceProvider.php

@@ -22,7 +22,7 @@ class ApiDocGeneratorServiceProvider extends ServiceProvider
         ], 'views');
 
         $this->publishes([
-            __DIR__.'/../config/apidoc.php' => config_path('apidoc.php'),
+            __DIR__.'/../config/apidoc.php' => app()->basePath().'/config/apidoc.php',
         ], 'config');
 
         $this->mergeConfigFrom(__DIR__.'/../config/apidoc.php', 'apidoc');