So, I'm doing this app in Laravel and my client wants it to have a "lockscreen" after 3 minutes of inactivity, something like what new PayPal site is doing. So if you're not active for 3 minutes you are presented with lockscreen view and you have to type in your password to retrieve the session.
It would be awesome if I could achieve this without messing with core files, like via controller and new middleware.
You could use sessions for this and check for the time use waited with each new request. You could use middleware for that.
$request->session()->put('expire_time', \Carbon::now()->addMinutes(3));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With