Level 41
In your Config/services.php file you can reference the key like this
env('stripe_key')
and add the stripe_key to your .env file.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have been following the laracast tutorial on using Cashier. They store their stripe test key in start.php but Laravel 5 doesnot have start.php. SO, where should I put my stripe test key in laravel 5
In your Config/services.php file you can reference the key like this
env('stripe_key')
and add the stripe_key to your .env file.
Please or to participate in this conversation.