E
E
edmoiseenkoff2014-03-12 13:29:54
Laravel
edmoiseenkoff, 2014-03-12 13:29:54

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

1 answer(s)
V
Vyacheslav Plisko, 2014-03-17
@AmdY

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 question

Ask a Question

731 491 924 answers to any question