From 5bbf0aabcd6ce2a9fb2414827b069d39a8a9180a Mon Sep 17 00:00:00 2001 From: Konstantinos Arvanitakis Date: Fri, 25 Sep 2026 14:03:37 +0300 Subject: [PATCH] Fix: Updating Account Controller to Handle tax_identifier correctly --- app/Http/Controllers/Account/AccountController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Http/Controllers/Account/AccountController.php b/app/Http/Controllers/Account/AccountController.php index bade0e6..a1488bc 100644 --- a/app/Http/Controllers/Account/AccountController.php +++ b/app/Http/Controllers/Account/AccountController.php @@ -79,12 +79,9 @@ public function update(string $locale, Request $request): RedirectResponse 'first_name' => $data['first_name'] ?? null, 'last_name' => $data['last_name'] ?? null, 'company_name' => $invoice ? $data['company_name'] : null, + 'tax_identifier' => $invoice ? $data['tax_identifier'] : null, ]); - // Written directly: core's updateProfile() allowlists `vat_no`, but - // Lunar's column is `tax_identifier`, so it can't go through there yet. - $customer->update(['tax_identifier' => $invoice ? $data['tax_identifier'] : null]); - if (filled($data['line_one'] ?? null)) { $addressData = [ ...collect($data)->only(self::ADDRESS_FIELDS)->all(),