Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2015, 11:37
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 10 meses
Puntos: 379
Respuesta: Validación mediante FormRequest y ajax Laravel 5

La documentación dice:
Cita:
If the incoming request was an AJAX request, no redirect will be generated. Instead, an HTTP response with a 422 status code will be returned to the browser containing a JSON representation of the validation errors.
Así que solo requieres capturar el error desde jquery y obtener el json.
La otra forma es hacer la validación desde el controlador.
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.