Support the ongoing development of Laravel.io →
posted 9 years ago
Configuration
Last updated 2 years ago.
0

I would imagine that the solution to this would be to write a service provider that has its own implementation of mergeConfigFrom that has the functionality you are seeking. Off the top of my head I can't think of anything inherent to Laravel that would do so specifically.

0

Thanks. So the service provider would register config file foo as a merge from config file bar, which can be anywhere presumably (not necessarily a base config file in a package). Then reading config data from foo.my_config_value would fall back to bar.my_config_value if foo hasn't defined my_config_value. Is that how it would work?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

judgej judgej Joined 4 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.