Explorar o código

refactor: deixa address_number required no request de unit

Gustavo Mantovani hai 1 día
pai
achega
2476391ab8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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',