Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jonmolnar's avatar

Forge not reading new environment variables?

I've had a site live for a few months and have been using environment variables through forge for Facebook, DB settings, Mandrill, etc.

I just recently tried to add my Stripe credentials and it won't seem to read the variables. When I php artisan tinker getenv('STRIPE_SECRET') it just returns false. When I use getenv for other environment variables I've been using it works.

Is it a syntax thing with the newer way you add env vars through forge? Really no idea why this isn't working.

0 likes
0 replies

Please or to participate in this conversation.