vuex-store-crud
v1.0.5
Published
Vuex crud state management for Laravel Vue
Downloads
3
Maintainers
Readme
//Package Vuex-store-crud. //It's for Laravel vue crud oparation with getters function.Any crud oparatin can be done with that simpale packge.
//installation npm i Vuex-store-crud --save
//setup import storeData from 'Vuex-store-crud' Vue.use(Vuex) const store=new Vuex.Store(storeData)
//define function like below within an object in your vue method to delete data... delete_user(slug){ this.$store.dispatch("delete",{id:slug, url:"/user-delete/"}) this.reload() }, //you may change the slug & link of that delete function.. //function list
"delete","edit","update","destroy","create","data"
//usages
this.$store.dispatch("create",{form:this.form, router:this.$router, url:"/user-create", next:"/user"})
//demo comming soon.......