Sfoglia il codice sorgente

refactor: deixa address_number required no request de unit

Gustavo Mantovani 1 giorno fa
parent
commit
2476391ab8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/Http/Requests/UnitRequest.php

+ 2 - 1
app/Http/Requests/UnitRequest.php

@@ -19,7 +19,7 @@ public function rules(): array
             'state_registration' => 'sometimes|nullable|string|max:50',
             'name_responsible'   => 'sometimes|required|string|max:255',
             'street'             => 'sometimes|required|string|max:255',
-            'address_number'     => 'sometimes|nullable|string|max:20',
+            'address_number'     => 'sometimes|required|string|max:20',
             'postal_code'        => 'sometimes|required|string|max:9',
             'neighborhood'       => 'sometimes|required|string|max:255',
             'complement'         => 'sometimes|nullable|string|max:255',
@@ -62,6 +62,7 @@ public function rules(): array
                 'cnpj',
                 'name_responsible',
                 'street',
+                'address_number',
                 'postal_code',
                 'neighborhood',
                 'city_id',