diff --git a/src/Generators/BaseGenerator.php b/src/Generators/BaseGenerator.php index e532ffd..b38591b 100644 --- a/src/Generators/BaseGenerator.php +++ b/src/Generators/BaseGenerator.php @@ -116,6 +116,12 @@ abstract class BaseGenerator implements GeneratorContract */ protected function getStubFileContent(string $stubName) { + $publishedStubPath = base_path('stubs/simple-crud/'.$stubName.'.stub'); + + if (is_file($publishedStubPath)) { + return $this->files->get($publishedStubPath); + } + return $this->files->get(__DIR__.'/../stubs/'.$stubName.'.stub'); }