Skip to content

Commit 1b62217

Browse files
Update README.md
1 parent 138d076 commit 1b62217

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
1-
# vee-validate-laravel
1+
# Vee Validate for Laravel backend validation
22
Extension of vee-validate to support Laravel backend validation
3+
4+
### Getting Started
5+
6+
In your script entry point:
7+
8+
```javascript
9+
import Vue from 'vue';
10+
import VeeValidate from 'vee-validate';
11+
import VeeValidateLaravel from 'vee-validate-laravel';
12+
13+
Vue.use(VeeValidate);
14+
Vue.use(VeeValidateLaravel);
15+
16+
```
17+
18+
In Vue classes:
19+
20+
```javascript
21+
22+
axios.post('/example', data).then(res => {
23+
}).catch(err => {
24+
this.$setLaravelValidationErrorsFromResponse(err.response.data);
25+
});
26+
27+
```

0 commit comments

Comments
 (0)