Support the ongoing development of Laravel.io →
Configuration

Is there any reason I should import variables from my .env file to a config and then use the config() helper to retrieve them instead of just accessign .env directly with the env() helper?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

voidstate voidstate Joined 10 Jul 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.