size) and Str::length($value) !== $this->size) { $this->error = 'string_wrong_size'; } // --------------------------------------------------------- // Validate the maximum length of the attribute. // --------------------------------------------------------- elseif ( ! is_null($this->maximum) and Str::length($value) > $this->maximum) { $this->error = 'string_too_big'; } // --------------------------------------------------------- // Validate the minimum length of the attribute. // --------------------------------------------------------- elseif ( ! is_null($this->minimum) and Str::length($value) < $this->minimum) { $this->error = 'string_too_small'; } return is_null($this->error); } }