fix(profile): menghapus validasi required untuk alamat dan menyesuaikan inputnya
This commit is contained in:
parent
a14c0658f1
commit
c63ec1b30e
@ -35,7 +35,7 @@ public function rules(): array
|
|||||||
'full_name' => ['required', 'string', 'max:100'],
|
'full_name' => ['required', 'string', 'max:100'],
|
||||||
'phone_number' => ['required', 'string', new PhoneNumber],
|
'phone_number' => ['required', 'string', new PhoneNumber],
|
||||||
'birthdate' => ['required', 'date', 'before:'.Carbon::now()->subYears(18)->format('Y-m-d')],
|
'birthdate' => ['required', 'date', 'before:'.Carbon::now()->subYears(18)->format('Y-m-d')],
|
||||||
'address' => ['required', 'string'],
|
'address' => ['nullable', 'string'],
|
||||||
'gender' => ['required', Rule::in(Gender::cases())],
|
'gender' => ['required', Rule::in(Gender::cases())],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,14 +46,10 @@
|
|||||||
<flux:input label="Tanggal Bergabung" wire:model="form.hire_date" readonly />
|
<flux:input label="Tanggal Bergabung" wire:model="form.hire_date" readonly />
|
||||||
|
|
||||||
<div class="md:col-span-2">
|
<div class="md:col-span-2">
|
||||||
<flux:field>
|
<flux:textarea label="Alamat"
|
||||||
<flux:label>Alamat <span class="text-red-500 ms-1">*</span></flux:label>
|
|
||||||
<flux:textarea
|
|
||||||
placeholder="Jl. Taman Pahlawan No.41, Nagri Kaler, Kec. Purwakarta, Kabupaten Purwakarta, Jawa Barat 41119"
|
placeholder="Jl. Taman Pahlawan No.41, Nagri Kaler, Kec. Purwakarta, Kabupaten Purwakarta, Jawa Barat 41119"
|
||||||
wire:model.live.debounce.500ms="form.address" autocomplete="off"
|
wire:model.live.debounce.500ms="form.address" autocomplete="off"
|
||||||
rows="2" />
|
rows="2" />
|
||||||
<flux:error name="form.address" />
|
|
||||||
</flux:field>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</flux:card>
|
</flux:card>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user