diff --git a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php index d85f21f8cec..aad6bf71c6e 100755 --- a/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php +++ b/packages/Webkul/Shop/src/Http/Controllers/Customer/RegistrationController.php @@ -45,7 +45,7 @@ public function index() */ public function store(RegistrationRequest $registrationRequest) { - $data = array_merge(request()->only([ + $data = array_merge($registrationRequest->only([ 'first_name', 'last_name', 'email', 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')"