jqh před 5 roky
rodič
revize
9ec4984cea
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 2 1
      resources/views/form/error.blade.php
  2. 1 1
      src/Form/Field/Text.php

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