protected function validateAttribute($object, $attribute) { if ($this->replacingCommas === true) { $object->{$attribute} = str_replace(',', '.', $object->{$attribute}); } parent::validateAttribute($object, $attribute); }