Przeglądaj źródła

Replace config_path() by generic code

DaazKu 6 lat temu
rodzic
commit
e7e27226ce
1 zmienionych plików z 1 dodań i 1 usunięć
  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');