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,8 +86,8 @@ abstract class Generator
$folder = $this->config->get('asgard.workshop.config.custom-stubs-folder');
if ($folder !== null) {
$file = base_path($folder . "/" . $filename);
if ($this->finder->exists($file)) {
$file = realpath($folder . '/' . $filename);
if ($file !== false) {
return $file;
}
}
......
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