whereNull('inactive_at') ->where('last_seen_at', '<=', now()->subHour()) ->update([ 'inactive_at' => now(), ]); } }