I added this variable to .env file
STRIPE_SECRET=a12345
I would like to dump the variable using routes/web.php
&
make sure you app is completely booted.
if you are running server with cmd then try restarting server.
and if it not works try clearing the cache using the methods above mentioned by @iCoders.