Add personal application fields to members

This commit is contained in:
2026-01-25 05:52:40 +08:00
parent 65de7d9019
commit c2f0047ed9
10 changed files with 729 additions and 27 deletions

View File

@@ -22,10 +22,21 @@ class StoreMemberRequest extends FormRequest
public function rules(): array
{
return [
'member_number' => ['nullable', 'string', 'max:50', 'unique:members,member_number'],
'full_name' => ['required', 'string', 'max:255'],
'email' => ['required', 'email', 'max:255', 'unique:users,email'],
'national_id' => ['nullable', 'string', 'max:50'],
'phone' => ['nullable', 'string', 'max:50'],
'phone_home' => ['nullable', 'string', 'max:50'],
'phone_fax' => ['nullable', 'string', 'max:50'],
'birth_date' => ['nullable', 'date'],
'gender' => ['nullable', 'in:male,female,other'],
'identity_type' => ['nullable', 'in:patient,parent,social,other'],
'identity_other_text' => ['nullable', 'string', 'max:255', 'required_if:identity_type,other'],
'occupation' => ['nullable', 'string', 'max:120'],
'employer' => ['nullable', 'string', 'max:255'],
'job_title' => ['nullable', 'string', 'max:120'],
'applied_at' => ['nullable', 'date'],
'address_line_1' => ['nullable', 'string', 'max:255'],
'address_line_2' => ['nullable', 'string', 'max:255'],
'city' => ['nullable', 'string', 'max:120'],