Tom Green
Tom Green
I can't speak for @JeffreyWay, but L5 offers [form request validation](http://laravel.com/docs/5.0/validation#form-request-validation) which can simplify the process immensely.
It would depend on your specific use case....
Looking at the `FormRequest` class's `response()` method: ``` php public function response(array $errors) { if ($this->ajax() || $this->wantsJson()) { return new JsonResponse($errors, 422); } return $this->redirector->to($this->getRedirectUrl()) ->withInput($this->except($this->dontFlash)) ->withErrors($errors, $this->errorBag); }...