public function postRegistro(Requests\Clientes\ClienteRegistroRequest $request) { $resp = Validaciones::validarCI($request['identificacion']); if ($resp != 'ok') { $errors = array("0" => $resp); return $request->response($errors); } Clientes::create($request->all()); return redirect()->route('registrar_cliente')->with('message', 'ok'); }