Support the ongoing development of Laravel.io →
Authorization Sanctum API
Last updated 3 months ago.
0

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.

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

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.

© 2022 Laravel.io - All rights reserved.