Skip to content

Instantly share code, notes, and snippets.

I'm sorry for the code quality, got this working in 1 night work.

anyways, this is currently working fine ignore error related to should be object or Could not resolve reference it will be fixed in future

requires cebe/php-openapi package composer req cebe/php-openapi

@martianatwork
martianatwork / FormField.vue
Created December 27, 2020 05:00
Nova Gutenberg FormField.vue
<script>
import { FormField, HandlesValidationErrors } from 'laravel-nova'
export default {
mixins: [
FormField,
HandlesValidationErrors,
],
props: [
@martianatwork
martianatwork / HasGetSettings.php
Created November 20, 2020 20:28
bavix/laravel-settings Global Settings
<?php
namespace App\Traits\Settings;
use App\Models\Setting;
use Bavix\Settings\Services\ReadableService;
trait HasGetSettings
{
/**
[{"name":"icos","color":"Red","position":{"x":99,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"currency_id","type":"bigInteger","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c125","order":0},{"name":"name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c138","order":1},{"name":"visible","type":"boolean","length":"","defaultvalue":"false","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c146","order":2}],"relation":[],"seeding":[]},{"name":"ico_stages","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[],"relation":[],"seeding":[]}]
@martianatwork
martianatwork / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;