@@ -1,4 +1,5 @@
-<error class="help-block with-errors"></error>
+<error></error>
+<div class="help-block with-errors"></div>
@if(is_array($errorKey))
@foreach($errorKey as $key => $col)
@if($errors->has($col.$key))
@@ -79,7 +79,7 @@ class Text extends Field
*/
public function minLength(int $length, ?string $error = null)
{
- $this->rules('min:'.$length);
+ $this->rules('nullable|min:'.$length);
return $this->attribute([
'data-minlength' => $length,