Level 37
No, because the key is used for various encryption tasks, so if you change it and redeploy your app, things like existing sessions will immediately become invalid since they won't be decryptable.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Should I run key generate during the docker image build?
Please or to participate in this conversation.