jqh 5 rokov pred
rodič
commit
9ec4984cea

+ 2 - 1
resources/views/form/error.blade.php

@@ -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))

+ 1 - 1
src/Form/Field/Text.php

@@ -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,