Secure Laravel: Encrypting .env for Source Control | Protect Your App Secrets! #freepalestine

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

The way how we manage is that we modify both .env and .env.example files. Only the .env.example file will get pushed and for most part it contains only the key not the value. Since it is environment specific it is the job of Dev Ops/Senior Engineer to update the values w.r.t each environment, i.e QA, Stage, Prod.

manojbharadwaj
Автор

What if I need encrypt all the project! Is there any way to make it??

Mohamadkhalaf
Автор

You did show how to manually encrypt and decrypt the .env file... but I didn't understand how is this used in code, for example in config files... does this work automagicaly or we need to do something extra to decrypt a value... for example a line in config/app.php: 'env' => env('APP_ENV', 'production'), would that simply work out of the box and read the env value from encrypted .env file and if the answer is no, how do we then read the values from encrypted .env file in config file/s?

easyvideott
Автор

shall i use your vedio content in my website ?? <3

usamaramzan
Автор

Bro do a vid on laravel with content secure policy

kevinfraser