Level 9
I use Twilio and have env variables calling the ID and token too without issue in dev and production. Are you certain the production environment .env file is being used?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
I'm using Twilio to send voice & text messages. Initializing the service requires sending using an ID / token.
In my dev environment, I used env($variable) to set each of these - but when I did this in production, I found the service didn't initialize. I copied the variables exactly from my homestead .env file to the forge .env file.
Any reason this wouldn't be working for me?
Thanks!
Please or to participate in this conversation.