Skip to content

Instantly share code, notes, and snippets.

View marcellorg's full-sized avatar

marcellorg

  • São Paulo, Brasil
View GitHub Profile
<template>
<div class="row cstToolBar">
<div class="col-sm-10 table-toolbar-left" >
<button class="btn btn-primary btn-labeled fa fa-plus" type="button">Nova Categoria</button>
</div>
<div class="col-sm-2 table-toolbar-right">
<div class="input-group">
<input type="text" class="form-control" placeholder="Filtrar" v-model="filterTerm" v-on:keyup.enter="search">
@extends(
'admin.base',
[
'title' => 'Categorias',
'pageTitle' => 'Categorias',
'breadCrumb' => ['Categorias']
]
)
@section('page-content')
import Vue from 'vue';
import VueResource from 'vue-resource';
import VueGridCategory from '../components/gridCategory.vue';
Vue.use(VueResource);
new Vue({
el: '#vueCategory',
@marcellorg
marcellorg / CatsController.php
Created June 1, 2016 06:10
Modelo controller
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Danbru\Http\Requests;
use Prettus\Validator\Contracts\ValidatorInterface;
use Prettus\Validator\Exceptions\ValidatorException;
use Danbru\Http\Requests\CatCreateRequest;