Have you tried searching through all files for env in the app folder?
grep -r 'env(' ./app
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using Cashier and have STRIPE_PRODUCT_ID and STRIPE_PLAN_ID defined in my env file on Forge. These variables are only being referenced using the config() helper, not via the env() helper.
When I run php artisan config:cache in production, I get an error stating that I passed an empty string to Stripe.
When I run php artisan config:clear everything works fine.
Why can't I use php artisan config:cache in production?
Please or to participate in this conversation.