Open nztim opened 3 years ago
It looks like the stub override folder location is hard-coded to be /stubs, e.g.: https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/Console/ModelMakeCommand.php#L143
/stubs
Is there a reason why this needs to be in the base folder? Wouldn't the resources subfolder be a more appropriate place?
I suggest that a) the location is configurable and b) in the next major version the default is changed to /resources/stubs.
/resources/stubs
Happy to do a PR if this is accepted in principle.
It looks like the stub override folder location is hard-coded to be
/stubs
, e.g.: https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/Console/ModelMakeCommand.php#L143Is there a reason why this needs to be in the base folder? Wouldn't the resources subfolder be a more appropriate place?
I suggest that a) the location is configurable and b) in the next major version the default is changed to
/resources/stubs
.Happy to do a PR if this is accepted in principle.