Home >Backend Development >PHP Tutorial >Laravel can read the configuration with Config::get('app.timezone'). Does it read all the configuration files at once?
It reads all the configuration files at once, which seems to be a little less efficient
It reads all the configuration files at once, which seems to be a little less efficient
In fact, even if you don’t use Config::get() to read the configuration, laravel is in the entry file
<code class="php">$response = $kernel->handle( $request = Illuminate\Http\Request::capture() );</code>All configuration information has been read in
and saved in the items array of IlluminateConfigRepository
So this is the loading overhead of the framework, not the overhead of Config::get