Support the ongoing development of →
Authorization Sanctum API
Last updated 2 years ago.

You can create a middleware that save the last time the user has been active (has sent a request). Then you can either log him our on his next request if the last active time is higher than your threshold or automatically log him out by sending and event.


Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.