Support the ongoing development of Laravel.io →
Configuration

HI,

i have my .env config file, but i have an external service that change the token every 3 hours. so im checking for valid token if not i need to refresh it, but i want to update the token param in the env, how can i do that?

im using the env("token") to get it, how can i reset this param?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

maorkavod maorkavod Joined 12 Sep 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.