This file contains hidden or 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
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Lesson extends Model | |
{ | |
protected $fillable = ['name', | |
'slug', |
This file contains hidden or 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
<?php | |
namespace App\Queries\GridQueries; | |
use DB; | |
use App\Queries\GridQueries\Contracts\DataQuery; | |
class SubcategoryQuery implements DataQuery | |
{ | |
public function data($column, $direction) |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Queries\GridQueries\GridQuery; | |
use App\Queries\GridQueries\WidgetQuery; | |
use App\Queries\GridQueries\MarketingImageQuery; | |
use App\Queries\GridQueries\CategoryQuery; | |
use App\Queries\GridQueries\SubcategoryQuery; |
This file contains hidden or 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
Vue.component('example', require('./components/Example.vue')); | |
Vue.component('widget-grid', require('./components/WidgetGrid.vue')); | |
Vue.component('marketing-image-grid', require('./components/MarketingImageGrid.vue')); | |
Vue.component('chat-message', require('./components/ChatMessage.vue')); | |
Vue.component('chat-list', require('./components/ChatList.vue')); | |
Vue.component('chat-create', require('./components/ChatCreate.vue')); | |
Vue.component('category-grid', require('./components/CategoryGrid.vue')); | |
Vue.component('subcategory-grid', require('./components/SubcategoryGrid.vue')); |
This file contains hidden or 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
<template> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<form id="search"> | |
Search <input name="query" v-model="query" @keyup="search(query)"> | |
</form> | |
<div class="pull-right"> | |
{{ total }} Total Results | |
</div> | |
<section class="panel"> |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Subcategory</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Subcategories</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Edit Subcategory</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
@extends('layouts.master') | |
@section('title') | |
<title>Create a Subcategory</title> | |
@endsection | |
@section('content') |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Subcategory; | |
use App\Category; | |
use Illuminate\Support\Facades\Redirect; | |
class SubcategoryController extends Controller |