Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow config files to be organized in multiple directories #1014

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Allow config files to be organized in multiple directories #1014

wants to merge 8 commits into from

Conversation

jshaffstall
Copy link

I'm writing some packages that I wanted to host their own model and setting config files. The changes in this pull request expand the model_config_path and settings_config_path options to accept an array of directories. The directories are searched for config files in order, and the first match is used. This allows an application to override a package's config files if needed.

This is fully backward compatible, a simple non-array path will still work for both model_config_path and settings_config_path.

This pull request includes updates to the tests and docs for this change.

Also in this pull request, but not critical, is the Request::url () change to allow Laravel 5.2 compatibility.

@jshaffstall
Copy link
Author

Some additional commit I made after I generated the pull request got pulled into the pull request, too. The last two commits are not about the config file changes, but are to allow the edit_fields section of the model config to be optional (I have a use case where I want custom actions but no direct editing of fields).

I hadn't thought those would get pulled in since I committed them after the pull request. Sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant