Skip to content

Instantly share code, notes, and snippets.

@evercode1
evercode1 / Oxygen.php
Created February 8, 2017 17:30
chapter 13 Oxygen.php
<?php
namespace App\Utilities;
class Oxygen
{
@evercode1
evercode1 / FuelTank.php
Created February 8, 2017 17:28
chapter 13 FuelTank.php
<?php
namespace App\Utilities;
class FuelTank
{
@evercode1
evercode1 / RocketShip.php
Last active February 8, 2017 18:04
chapter 13 RocketShip.php
<?php
namespace App\Utilities;
use App\Utilities\Contracts\RocketShipContract;
class RocketShip implements RocketShipContract
{
public $fuelTank;
@evercode1
evercode1 / Kernel.php
Created February 7, 2017 23:38
chapter 14 Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@evercode1
evercode1 / RemoveOldMessages.php
Last active February 7, 2017 23:02
chapter 14 RemoveOldMessages.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
class RemoveOldMessages extends Command
{
/**
@evercode1
evercode1 / RemoveOldMessages.php
Created February 7, 2017 21:44
chapter 14 RemoveOldMessages.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
class RemoveOldMessages extends Command
{
/**
@evercode1
evercode1 / app.js
Created February 6, 2017 22:58
chapter 14 app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
/**
@evercode1
evercode1 / vue-root.js
Created February 6, 2017 22:50
chapter 14 vue-root.js
const app = new Vue({
el: '#app',
data: {
messages: [
],
@evercode1
evercode1 / MessagePosted.php
Created February 6, 2017 21:36
chapter 14 MessagePosted.php
<?php
namespace App\Events;
use App\Message;
use App\User;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
@evercode1
evercode1 / app.js
Last active February 6, 2017 22:27
chapter 14 app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
/**