@bobanum/vue-model

0.0.1 • Public • Published

@bobanum/vue-model

Vue Model system based on Laravel Models and Queries.

Installation

npm install @bobanum/vue-model

Usage

import Vue from 'vue'
import {Model} from '@bobanum/vue-model'
export default class Task extends Model {
  static get url () {
	return '/api/model'
  }
  static get fields () {
	return {
	  id: {
		type: Number,
		default: null
	  },
	  name: {
		type: String,
		default: null
	  }
	}
  }
}

API call examples

Method Verb URL Description
Model.all() GET /api/task gets all rows

To be continued

/@bobanum/vue-model/

    Package Sidebar

    Install

    npm i @bobanum/vue-model

    Weekly Downloads

    2

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    10.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • bobanum