jqh 5 år sedan
förälder
incheckning
d8fcd5b45e
3 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 1
      src/Admin.php
  2. 2 2
      src/Console/IdeHelperCommand.php
  3. 1 1
      src/Support/Composer.php

+ 1 - 1
src/Admin.php

@@ -339,7 +339,7 @@ class Admin
         $files  = app('files');
         $result = (bool)$files->put(config_path('admin-extensions.php'), Helper::exportArrayPhp($config));
 
-        if ($result && is_file($cache = app_path('../bootstrap/cache/config.php'))) {
+        if ($result && is_file(base_path('bootstrap/cache/config.php'))) {
             Artisan::call('config:cache');
         }
 

+ 2 - 2
src/Console/IdeHelperCommand.php

@@ -61,7 +61,7 @@ class IdeHelperCommand extends Command
         'show-column' => '* @method $this %s(...$params)',
     ];
 
-    protected $path = '../dcat_admin_ide_helper.php';
+    protected $path = 'dcat_admin_ide_helper.php';
 
     /**
      * Execute the console command.
@@ -188,7 +188,7 @@ class IdeHelperCommand extends Command
             File::get($this->getStub())
         );
 
-        File::put(app_path($this->path), $content);
+        File::put(base_path($this->path), $content);
     }
 
     /**

+ 1 - 1
src/Support/Composer.php

@@ -32,7 +32,7 @@ class Composer
             return null;
         }
 
-        $lockFile = $lockFile ?: app_path('../composer.lock');
+        $lockFile = $lockFile ?: base_path('composer.lock');
 
         $content = collect(static::readJson($lockFile)['packages'] ?? [])
             ->filter(function ($value) use ($packageName) {