From 296a70010d5ad5376e9a23b4c2406f3a484d2f1f Mon Sep 17 00:00:00 2001 From: gbanyan Date: Fri, 13 Feb 2026 08:42:04 +0800 Subject: [PATCH] fix(profile): show and persist line id in profile form --- app/Http/Controllers/ProfileController.php | 1 + app/Http/Requests/ProfileUpdateRequest.php | 1 + .../update-profile-information-form.blade.php | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 7e6c553..86c3fb0 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -52,6 +52,7 @@ class ProfileController extends Controller $memberFields = [ 'national_id', 'phone', + 'line_id', 'phone_home', 'phone_fax', 'address_line_1', diff --git a/app/Http/Requests/ProfileUpdateRequest.php b/app/Http/Requests/ProfileUpdateRequest.php index aa8ee31..ffc6acb 100644 --- a/app/Http/Requests/ProfileUpdateRequest.php +++ b/app/Http/Requests/ProfileUpdateRequest.php @@ -20,6 +20,7 @@ class ProfileUpdateRequest extends FormRequest 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)], 'national_id' => ['nullable', 'string', 'max:50'], 'phone' => ['nullable', 'string', 'max:50'], + 'line_id' => ['nullable', 'string', 'max:100'], 'phone_home' => ['nullable', 'string', 'max:50'], 'phone_fax' => ['nullable', 'string', 'max:50'], 'birth_date' => ['nullable', 'date'], diff --git a/resources/views/profile/partials/update-profile-information-form.blade.php b/resources/views/profile/partials/update-profile-information-form.blade.php index c7907e1..16ab947 100644 --- a/resources/views/profile/partials/update-profile-information-form.blade.php +++ b/resources/views/profile/partials/update-profile-information-form.blade.php @@ -182,6 +182,22 @@ +
+ + + +
+ + +