You can call the GITLAB_KEY that you put in .env just by typing:
env('GITLAB_KEY')
.env
GITLAB_KEY=DA12321ffsdfdaeer1312ForExample
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey :)
so I read a lot about GitLab CI and how you can deploy your server. However, now I noticed that there might be a small problem. Wenn GitLab is running npm run production it compiles the code with the MIX_<variables>.
Normally, I would not put the API keys in .env.example, but in this case does it really matter, because you can read out the keys anyway by looking into the javascript code?
Please or to participate in this conversation.