Implement A DataTable using the repository.
<v-table
ref="tasks"
route="tasks/table">
<template slot="caption">
<i class="fa fa-tasks"></i> Tasks| ## Usage: | |
| ``` | |
| <v-table | |
| ref="tasks" | |
| route="api/tasks/table"> | |
| <template slot="caption"> | |
| <i class="fa fa-tasks"></i> Tasks | |
| </template> | |
| <template slot="thead" slot-scope="table"> |
| <script> | |
| /** | |
| * @property validator | |
| **/ | |
| export default { | |
| name: "Control", | |
| props: { | |
| field: { | |
| type: String, | |
| }, |
| <script> | |
| import {Validator} from 'laravel-micro.js' | |
| export default { | |
| name: "Form", | |
| props:{ | |
| route: { | |
| type: String, | |
| required: true, | |
| }, | |
| method: { |
| <script> | |
| import {mapGetters, mapState, mapMutations} from 'vuex' | |
| export default { | |
| name: "Base", | |
| computed: { | |
| ...mapGetters('menus', { | |
| leftItems: 'left', | |
| rightItems: 'right', | |
| }), | |
| ...mapState('menus', { |
| <script> | |
| import dragDrop from 'drag-drop' | |
| import {HasLoadingState, HasErrors} from '../mixins' | |
| export default { | |
| mixins: [ | |
| HasLoadingState, | |
| HasErrors, | |
| ], | |
| data() { |
Laravel Model & Index https://gist.github.com/bayareawebpro/ab53ccd81a4855b5267aead158c21670 https://gist.github.com/bayareawebpro/bb8c3a03718f6dc70a8ed569e4465f7e
https://github.com/moshe/elasticsearch_loader
~/Library/Python/2.7/bin/elasticsearch_loader
--index locations
| <?php | |
| namespace App; | |
| use App\Traits\FullTextSearchable; | |
| use App\Traits\Radial; | |
| use Illuminate\Database\Eloquent\Model; | |
| use ScoutElastic\Searchable; | |
| class Location extends Model |
| <?php | |
| namespace App; | |
| use ScoutElastic\IndexConfigurator; | |
| use ScoutElastic\Migratable; | |
| class LocationIndex extends IndexConfigurator | |
| { | |
| use Migratable; |