Answer the question
In order to leave comments, you need to log in
Laravel configuration?
Good afternoon. I just started learning Laravel, can you please tell me if it's possible to make the configuration like this:
--| app
-----| config
-----|--| local
-----|--|--| comp1
-----|--|--|-- app.php
-----|--|-- app.php
-----|-- app.php
i.e. target the config to the comp1 folder, if there is no setting in the comp1/app.php file, pull it from local/app.php, if it is not there, then from app.php (the one that is by default).
Thank you very much!
Answer the question
In order to leave comments, you need to log in
In bootstrap/start.php
$env = $app->detectEnvironment(
array(
'local' => array['<your host>'],
)
);
the host can be obtained using the hostname command
for the console, add the --env=local key
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question