Skip to content

Instantly share code, notes, and snippets.

@evercode1
evercode1 / bottom.blade.php
Created February 28, 2017 18:38
bottom.blade.php
<hr>
<div class="well">
<p>&copy;
@if (date('Y') > 2015)
2015 - {{ date('Y') }}
@evercode1
evercode1 / MarketingImageController.php
Created February 23, 2017 23:21
chapter 10 MarketingImageController.php
<?php
namespace App\Http\Controllers;
use App\Traits\ManagesImages;
use App\Http\Requests\CreateImageRequest;
use App\MarketingImage;
use App\Http\Requests\EditImageRequest;
class MarketingImageController extends Controller
@evercode1
evercode1 / test.index
Created February 13, 2017 17:26
chapter 4 test.index revised
@extends('layouts.master')
@section('content')
<h1>This is My Test Page</h1>
@if(count($beatles) > 0)
@foreach($beatles as $beatle)
@evercode1
evercode1 / components.js
Created February 13, 2017 01:46
chapter 15 components.js final
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'));
Vue.component('lesson-grid', require('./components/LessonGrid.vue'));
Vue.component('lesson-create-category', require('./components/LessonCreateCategory.vue'));
@evercode1
evercode1 / LessonEditCategory.vue
Created February 13, 2017 01:37
chapter 15 LessonEditCategory.vue
<template>
<div>
<!-- Category Select Form -->
<div class="form-group">
<label for="category_id">Category Name:</label>
<select @change="onChange($event.target.value)"
@evercode1
evercode1 / LessonController.php
Last active February 13, 2017 01:30
chapter 15 LessonController.php final
<?php
namespace App\Http\Controllers;
use App\Http\AuthTraits\OwnsRecord;
use App\Http\Requests\LessonCreateRequest;
use Illuminate\Http\Request;
use App\Lesson;
use App\Category;
use App\Subcategory;
@evercode1
evercode1 / edit.blade.php
Created February 13, 2017 00:18
chapter 15 lesson/edit.blade.php
@extends('layouts.master')
@section('title')
<title>Edit Lesson</title>
@endsection
@section('content')
@evercode1
evercode1 / LessonCreateCategory.vue
Created February 12, 2017 23:33
chapter 15 LessonCreateCategory.vue
<template>
<div>
<!-- Category Select Form -->
<div class="form-group">
<label for="category_id">Category Name:</label>
<select @change="onChange($event.target.value)"
@evercode1
evercode1 / LessonCreateCategory.vue
Created February 12, 2017 23:24
chapter 15 LessonCreateCategory.vue
<template>
<div>
<!-- Category Select Form -->
<div class="form-group">
<label for="category_id">Category Name:</label>
<select @change="onChange($event.target.value)"
@evercode1
evercode1 / LessonCreateCategory.vue
Last active February 12, 2017 22:15
chapter 15 LessonCreateCategory.vue
<template>
<div>
<!-- Category Select Form -->
<div class="form-group">
<label for="category_id">Category Name:</label>
<select v-model="selected"