Support the ongoing development of Laravel.io →
Authorization Sanctum API
Last updated 2 years 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!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.