Wanted to move away values from .env

Posted 1 year ago by gsmart07

I have a situation where client wants me to not expose credentials of database by not putting directly into .env file but in external file in another directory on server, which loads those values and will work and I will also able to share my code easily. I did this in Codeigniter and CakePHP where config files are usually php files but seems to be difficult in Laravel, Please help.

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.