vuex-store-crud

1.0.5 • Public • Published

//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.......

Package Sidebar

Install

npm i vuex-store-crud

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

9.73 kB

Total Files

7

Last publish

Collaborators

  • rakib29024