Level 88
You need to have facades enabled to make this work, after that you should find your answer here: https://laravel.com/docs/5.8/passport#token-lifetimes
Sometimes passport might not work 100% with Lumen. There is a package that makes integrating passport with Lumen very easy: https://github.com/dusterio/lumen-passport
In that package you can also set the lifetime of a token: https://github.com/dusterio/lumen-passport#different-ttls-for-different-password-clients
1 like