Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGlynWilliams authored Dec 29, 2017
1 parent 138d076 commit 1b62217
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# vee-validate-laravel
# Vee Validate for Laravel backend validation
Extension of vee-validate to support Laravel backend validation

### Getting Started

In your script entry point:

```javascript
import Vue from 'vue';
import VeeValidate from 'vee-validate';
import VeeValidateLaravel from 'vee-validate-laravel';

Vue.use(VeeValidate);
Vue.use(VeeValidateLaravel);

```

In Vue classes:

```javascript

axios.post('/example', data).then(res => {
}).catch(err => {
this.$setLaravelValidationErrorsFromResponse(err.response.data);
});

```

0 comments on commit 1b62217

Please sign in to comment.