Browse Source

Merge pull request #674 from andrey-helldar/patch-2020-01-20-10-43

Replaced the helper call with the class method in the ServiceProvider
Shalvah 5 years ago
parent
commit
503b699f11
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ApiDocGeneratorServiceProvider.php

+ 2 - 2
src/ApiDocGeneratorServiceProvider.php

@@ -19,11 +19,11 @@ class ApiDocGeneratorServiceProvider extends ServiceProvider
         $this->loadViewsFrom(__DIR__.'/../resources/views/', 'apidoc');
 
         $this->publishes([
-            __DIR__.'/../resources/views' => app()->basePath().'/resources/views/vendor/apidoc',
+            __DIR__.'/../resources/views' => $this->app->basePath('resources/views/vendor/apidoc'),
         ], 'apidoc-views');
 
         $this->publishes([
-            __DIR__.'/../config/apidoc.php' => app()->basePath().'/config/apidoc.php',
+            __DIR__.'/../config/apidoc.php' => $this->app->configPath('apidoc.php'),
         ], 'apidoc-config');
 
         $this->mergeConfigFrom(__DIR__.'/../config/apidoc.php', 'apidoc');