-
Hello, i'm in a situation where i need an environement variable, but when i need it, inside prepare function of DuskTestCase, the environement is not yet available, it's only loaded when setUp is called. So i need laravel to load the environement, i'm doing that :
is it the best way / recommended way ? thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
May 22, 2023
Replies: 1 comment 1 reply
-
For such requirements I would just read .env directly using DotEnv classes. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lk77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For such requirements I would just read .env directly using DotEnv classes.