diff --git a/app/Http/Requests/CreateClientRequest.php b/app/Http/Requests/CreateClientRequest.php index 6fb7060e422f..26ce5c4b5371 100644 --- a/app/Http/Requests/CreateClientRequest.php +++ b/app/Http/Requests/CreateClientRequest.php @@ -26,21 +26,4 @@ class CreateClientRequest extends Request 'contacts' => 'valid_contacts', ]; } - - public function validator($factory) - { - // support submiting the form with a single contact record - $input = $this->input(); - if (isset($input['contact'])) { - $input['contacts'] = [$input['contact']]; - unset($input['contact']); - $this->replace($input); - } - - return $factory->make( - $this->input(), - $this->container->call([$this, 'rules']), - $this->messages() - ); - } } diff --git a/app/Http/Requests/CreateVendorRequest.php b/app/Http/Requests/CreateVendorRequest.php index d901f9e481c8..9b2accb36524 100644 --- a/app/Http/Requests/CreateVendorRequest.php +++ b/app/Http/Requests/CreateVendorRequest.php @@ -26,21 +26,4 @@ class CreateVendorRequest extends Request 'name' => 'required', ]; } - - /* - public function validator($factory) - { - // support submiting the form with a single contact record - $input = $this->input(); - if (isset($input['vendor_contact'])) { - $input['vendor_contacts'] = [$input['vendor_contact']]; - unset($input['vendor_contact']); - $this->replace($input); - } - - return $factory->make( - $this->input(), $this->container->call([$this, 'rules']), $this->messages() - ); - } - */ }