Skip to content

Instantly share code, notes, and snippets.

View Casmo's full-sized avatar

Mathieu Casmo

View GitHub Profile
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
@Casmo
Casmo / bootstrap.php
Created October 26, 2016 16:31
ArrayType for CakePHP 3
<?php
use Cake\Database\Type;
Type::map('array', 'App\Database\Type\ArrayType');
@Casmo
Casmo / BootstrapFormHelper.php
Last active November 25, 2018 22:23 — forked from Suven/BootstrapFormHelper.php
Keep default class for labels.
<?php
App::uses('FormHelper', 'View/Helper');
/**
* BootstrapFormHelper.
*
* Applies styling-rules for Bootstrap 3
*
* To use it, just save this file in /app/View/Helper/BootstrapFormHelper.php
* and add the following code to your AppController: