Fix form requests

This commit is contained in:
Dane Everitt
2017-12-16 13:44:30 -06:00
parent c6cece51ee
commit 631b5eb1b2
2 changed files with 2 additions and 12 deletions

View File

@@ -44,9 +44,6 @@ abstract class AdminFormRequest extends FormRequest
*/
public function normalize($only = [])
{
return array_merge(
$this->only($only),
$this->intersect(array_keys($this->rules()))
);
return $this->all(empty($only) ? array_keys($this->rules()) : $only);
}
}