From 41fb7c9c446ee6665f5049776da70b34adca83a7 Mon Sep 17 00:00:00 2001 From: Shivendra Date: Mon, 30 Oct 2023 15:41:48 +0530 Subject: [PATCH 1/2] fixed issue_8821 --- .../src/Http/Controllers/Customer/RegistrationController.php | 2 ++ .../Webkul/Shop/src/Resources/views/customers/sign-up.blade.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php index d85f21f8cec..20442be680d 100755 --- a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php +++ b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php @@ -45,6 +45,8 @@ public function index() */ public function store(RegistrationRequest $registrationRequest) { + $registrationRequest->validated(); + $data = array_merge(request()->only([ 'first_name', 'last_name', diff --git a/packages/Webkul/Shop/src/Resources/views/customers/sign-up.blade.php b/packages/Webkul/Shop/src/Resources/views/customers/sign-up.blade.php index db93b3100a9..8161a1aa18c 100755 --- a/packages/Webkul/Shop/src/Resources/views/customers/sign-up.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/customers/sign-up.blade.php @@ -57,7 +57,7 @@ class="w-full max-w-[870px] m-auto px-[90px] py-[60px] border border-[#E9E9E9] r type="text" name="first_name" class="!p-[20px_25px] rounded-lg" - :value="old('last_name')" + :value="old('first_name')" rules="required" :label="trans('shop::app.customers.signup-form.first-name')" :placeholder="trans('shop::app.customers.signup-form.first-name')" From b7776be2edc1399cff67493a3af56aa12280ead4 Mon Sep 17 00:00:00 2001 From: Shivendra Date: Tue, 31 Oct 2023 12:13:30 +0530 Subject: [PATCH 2/2] fixed issue --- .../src/Http/Controllers/Customer/RegistrationController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php index 20442be680d..aad6bf71c6e 100755 --- a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php +++ b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php @@ -45,9 +45,7 @@ public function index() */ public function store(RegistrationRequest $registrationRequest) { - $registrationRequest->validated(); - - $data = array_merge(request()->only([ + $data = array_merge($registrationRequest->only([ 'first_name', 'last_name', 'email',