It always get the info from that file? .env just sets the getenv() part. Do you mean it's using the default value?
2 in this case?
($var ? 1 : 2)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have different database name in .env file and in config/database.php Laravel framework should connect to database name in .env file and it works ok, but every 20,30 request framework gets database name from config/database.php and error is throw. Why is this hapening ????
Please or to participate in this conversation.