Home > Backend Development > PHP Tutorial > Laravel can read the configuration with Config::get('app.timezone'). Does it read all the configuration files at once?

Laravel can read the configuration with Config::get('app.timezone'). Does it read all the configuration files at once?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-01 00:20:18
Original
1581 people have browsed it

It reads all the configuration files at once, which seems to be a little less efficient

Reply content:

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

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
Copy after login
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

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template