Laravel jwt token

-1

I'm using tymondesigns / jwt-auth to generate token It's working The problem is that I want to change the validity time of the token to 1 minute for testing

I changed the jwt.php file: 'ttl' = > env ('JWT_TTL', 1), and I also tried: 'ttl' = > 1,

It still did not work

    
asked by anonymous 15.11.2018 / 15:20

1 answer

0

I tried to clear the cache like this:

php artisan cache: clear

It made no difference I discovered that clearing the configuration cache:

php artisan config: cache

Now it works

    
16.11.2018 / 16:25