A
A
andre77772016-11-02 16:32:06
Laravel
andre7777, 2016-11-02 16:32:06

What settings does laravel5 use in .env or config/?

There are settings for example mail in config/mail.php and in .env
Why in 2 places and which ones are used when?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-11-02
@andre7777

mail.php pulls the settings from the .env file, if they are there. .env stores only those settings that depend on the environment (on the local server there may be one port for mail, on production another), and all the rest (such as the name of your application) are stored in config files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question