This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Serializable | |
{ | |
protected static $vColumns = []; | |
public static function setVisibleColumns($columns = []) { | |
static::$vColumns = $columns; | |
} | |
public function toJson($options = 0) { | |
$this->setVisible(static::$vColumns); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue"; | |
import Store from './some_vuex_store.js' | |
import Component1 from './some_comp.vue' | |
import Component2 from './some_comp2.vue' | |
window.addEventListener('load', () => { | |
const components = {Component1, Component2}; | |
Object.keys(components).forEach((key) => { | |
components[key] = Vue.extend(Object.assign(components[key], { |