|
@@ -11,6 +11,7 @@ public function rules(): array
|
|
|
$isCreate = $this->isMethod('POST');
|
|
$isCreate = $this->isMethod('POST');
|
|
|
|
|
|
|
|
$rules = [
|
|
$rules = [
|
|
|
|
|
+ 'name' => 'sometimes|required|string|max:255',
|
|
|
'fantasy_name' => 'sometimes|nullable|string|max:255',
|
|
'fantasy_name' => 'sometimes|nullable|string|max:255',
|
|
|
'social_reason' => 'sometimes|required|string|max:255',
|
|
'social_reason' => 'sometimes|required|string|max:255',
|
|
|
'cnpj' => 'sometimes|required|string|max:20',
|
|
'cnpj' => 'sometimes|required|string|max:20',
|
|
@@ -55,6 +56,7 @@ public function rules(): array
|
|
|
|
|
|
|
|
if ($isCreate) {
|
|
if ($isCreate) {
|
|
|
$required = [
|
|
$required = [
|
|
|
|
|
+ 'name',
|
|
|
'social_reason',
|
|
'social_reason',
|
|
|
'cnpj',
|
|
'cnpj',
|
|
|
'name_responsible',
|
|
'name_responsible',
|