public static function updateAttributes($user, $attributes) { foreach ($attributes as $attribute) { ModelAttributeService::update($attribute); } return true; }