diff --git a/README.md b/README.md index 66e3375..87fc9db 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ In Vue classes: axios.post('/example', data).then(res => { }).catch(err => { - this.$setLaravelValidationErrorsFromResponse(err.response.data); + this.$setLaravelValidationErrorsFromResponse({ errors: err.response.data }); }); } }