/** * mark all messages of a type for a ninja as read **/ public static function markAsRead(Player $char, $type) { return Message::where(['send_to' => $char->id(), 'type' => $type])->update(['unread' => 0]); }