Support the ongoing development of Laravel.io →
Configuration Laravel
0

At application boot time, Laravel loads configuration by scanning only the PHP files located directly within the config/ directory, using a non‑recursive approach. Subdirectories inside config/—including symlinked directories—are not traversed, so any configuration files within them are ignored. Consequently, configuration files take effect only when they exist (or are symlinked as files) directly under config/, and no precedence or override behavior is applied based on directory structure or naming.

https://github.com/laravel/framework/blob/10.x/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php

0

Sign in to participate in this thread!

Native PHP

Your banner here too?

pglaio pgnd Joined 9 Dec 2025

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.

© 2025 Laravel.io - All rights reserved.