laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

Move stub override folder location to resources folder #2568

Open nztim opened 3 years ago

nztim commented 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

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.

Happy to do a PR if this is accepted in principle.