Testing the feature of overwriting stub views. Using realpath instead of...

Testing the feature of overwriting stub views. Using realpath instead of base_path, leaving more options open
parent bb36ca0d
...@@ -86,12 +86,12 @@ abstract class Generator ...@@ -86,12 +86,12 @@ abstract class Generator
$folder = $this->config->get('asgard.workshop.config.custom-stubs-folder'); $folder = $this->config->get('asgard.workshop.config.custom-stubs-folder');
if ($folder !== null) { if ($folder !== null) {
$file = base_path($folder . "/" . $filename); $file = realpath($folder . '/' . $filename);
if ($this->finder->exists($file)) { if ($file !== false) {
return $file; return $file;
} }
} }
return __DIR__ . "/../stubs/$filename"; return __DIR__ . "/../stubs/$filename";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment