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

Mark config options for smart merge #50364

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

jasonmccreary
Copy link
Contributor

@jasonmccreary jasonmccreary commented Mar 4, 2024

This is a proof of concept that would allow "smart merging" of configuration options. Right now Laravel 11 "shallow" merges application config with the frame defaults. However, many config files like database, filesystems, mail, etc have a "main" option which is nested. This PR creates a registry of those "main" options and does an additional merge for them.

This would allow developers to further slim their configuration files while reducing the possibility of removing a core configuration option. For example, only customizing mysql database driver, while still using sqlite for testing. Or adding additional disks, but still using the default local or s3 disks.

@taylorotwell taylorotwell merged commit 05238fc into laravel:master Mar 4, 2024
28 checks passed
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.

2 participants