KPoruba
297
10
Laravel

.env variables returns null

Posted 2 years ago by KPoruba

Hi,

when I would get a variables from .env file using env() function, always returns null. I tried cache:clear, config:cache, finally i change in correct php.ini value from variables_order = "GPCS" to variables_order = "EGPCS". From this moment returns $_ENV array of data, but not include data from .env file.

I could't get data from .env anyway. Can anyone help me?

Thanks, have a good day!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.