getCode() === Response::HTTP_UNPROCESSABLE_ENTITY) { redirect()->back()->withInput()->withErrors($result->getErrors()); exit; } abort($result->getCode(), $result->getMessage()); } }