Skip to content

Instantly share code, notes, and snippets.

View dmlogic's full-sized avatar

Darren Miller dmlogic

View GitHub Profile
@dmlogic
dmlogic / PsuedoChannelEntries.php
Created July 4, 2014 08:08
Run any string as ExpresisonEngine channel::entries. Also supports search field
<?php
/**
* Allows an arbirary string to be parsed as Channel Entries markup
*/
use Channel;
class PsuedoChannelEntries {
public function entries($tagparams,$tagdata,$search_fields = [])
{
@dmlogic
dmlogic / AngularTrait.php
Last active August 29, 2015 14:03
Securing Angular with Laravel
<?php namespace MyApp\Response;
use Cookie;
use Request;
use Session;
use Symfony\Component\HttpFoundation\Cookie as SymfonyCookie;
trait AngularTrait {
/**