Allow excluding directories from the model search with sensible defaults #135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In L5 (this is also backwards compatible/non-breaking with L4) your models now live in the base app directory -
You also have a bunch of other directories at the same level that do not contain models Console, Exception, Http etc -
These generate a lot of "xxx is not a model" message, this requests allows you to set paths relative to the base url (the same as model_locations) that classes found will not be added to the models array.
This is recursive so excluding app/Console will exclude app/Console/Commands etc.