Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

auto logout when session expires laravel

class LoginController extends Controller
{
  // ...
  protected function authenticated(Request $request, $user)
  {
    $user->last_seen_at = Carbon::now()->format('Y-m-d H:i:s');
    $user->save();
  }
}
Source by bmatovu.com #
 
PREVIOUS NEXT
Tagged: #auto #logout #session #expires #laravel
ADD COMMENT
Topic
Name
2+4 =