last_active = date('Y-m-d H:i:s'); $user->save(); } return $next($request); } }