From 6733c0ca2f5fa939fce7d38ea2be709c69d4f9c6 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 10 Apr 2016 21:48:51 +0300 Subject: [PATCH] Removed validation pre-processing code --- app/Http/Requests/CreateClientRequest.php | 17 ----------------- app/Http/Requests/CreateVendorRequest.php | 17 ----------------- 2 files changed, 34 deletions(-) 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() - ); - } - */ }