@@ -12,7 +12,7 @@ classes. Keep your code clean and elegant.
1212Wouldn't it be great if you could just use your back end to validate forms on the front end? This package provides a
1313` BaseService ` class that does exactly that. It can post itself to a configured endpoint and manage errors. The class is
1414meant to be used with a Laravel back end, and it doesn't limit that you need only to work with laravel, Ruby on Rail,
15- NodeJs, ExpressJs , or any other languages.
15+ Node.js, Express.js , or any other languages.
1616
1717Take a look at the [ usage section] ( #usage ) to view a detailed example on how to use it.
1818
@@ -56,7 +56,7 @@ export default {
5656
5757### Options
5858
59- you can overwrite it, by adding in config above.
59+ you can overwrite it by adding in the config above.
6060
6161### Note:
6262
@@ -94,7 +94,7 @@ Vue.use(AxiosHttp)
9494
9595### Note
9696
97- Error response must look like: or base on ** errorProperty** from config
97+ Error response must look like: or based on ** errorProperty** from config
9898
9999``` json
100100{
@@ -137,7 +137,7 @@ $errors.first(['name[0]']) // return object like
137137$errors .first ([' name[0].kh' ]) // return string like
138138```
139139
140- ## Using with Vuex
140+ ## Using it with Vuex
141141
1421421.Create ** proxies** folder or your prefer folder name for this
143143
@@ -296,7 +296,7 @@ export default {
296296
297297You can set or remove any parameters you like.
298298
299- ## Service's methods are available
299+ ## Service methods are available
300300
301301| Method | Description |
302302| ----------------------------------------------- | --------------------------- |
@@ -310,7 +310,7 @@ You can set or remove any parameters you like.
310310
311311Set parameters with key/value.
312312
313- ** Note** : If you to pass query string as object that can be response like object format at api side.
313+ ** Note** : If you to pass query string, as an object that can be response like object format at api side.
314314
315315#### Example
316316
@@ -335,13 +335,13 @@ const { data } = service.setParameters(parameters).all()
335335this .data = data
336336```
337337
338- ** Note** : Query object above will transform into query string like:
338+ ** Note** : A query object above will transform into query string like:
339339
340340``` text
341341https://my-web-url.com?search[first_name]=Sek&search[last_name]=Chantouch&page[limit]=10&page[offset]=1&order[first_name]=asc&order[last_name]=desc&category_id=6
342342```
343343
344- if setParameter that value is empty or null it will remove that param for query string
344+ if setParameter that value is empty or null, it will remove that param for query string
345345
346346#### setParameter()
347347
@@ -426,7 +426,7 @@ It can be called by `this.$errors.**`
426426| ** has(attributes)** | To check multiple attributes given have any errors |
427427| ** first(attribute)** | To get errors message by an attribute |
428428
429- ## How to use in vue component
429+ ## How to use in a vue component
430430
431431``` vue
432432<template>
0 commit comments