diff --git a/src/Console/Commands/AbstractGeneratorCommand.php b/src/Console/Commands/AbstractGeneratorCommand.php index 265bedd5..53b1d625 100644 --- a/src/Console/Commands/AbstractGeneratorCommand.php +++ b/src/Console/Commands/AbstractGeneratorCommand.php @@ -85,7 +85,7 @@ abstract class AbstractGeneratorCommand extends GeneratorCommand * * @var string */ - private $stubsDirectory = __DIR__ . '/../../../stubs'; + private $stubsDirectory; /** * Create a new config clear command instance. @@ -99,6 +99,7 @@ public function __construct(Filesystem $files) $this->useEloquent = config('json-api.generator.use-eloquent', true); $this->subNamespace = config('json-api.generator.namespace', 'JsonApi'); $this->namespaceByResource = config('json-api.generator.by-resource', true); + $this->stubsDirectory = __DIR__ . '/../../../stubs'; } /**