Removed validation pre-processing code

This commit is contained in:
Hillel Coren 2016-04-10 21:48:51 +03:00
parent c08d0bb98a
commit 6733c0ca2f
2 changed files with 0 additions and 34 deletions

View File

@ -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()
);
}
}

View File

@ -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()
);
}
*/
}