Skip to content

Instantly share code, notes, and snippets.

View asakurayoh's full-sized avatar

Maxime Lafontaine asakurayoh

View GitHub Profile
asakurayoh / Builder.php
Created November 17, 2012 22:38
Single Table Inheritance in Laravel 4 / Illuminate
<?php namespace App;
use Illuminate\Database\Eloquent\Builder as BaseBuilder;
class Builder extends BaseBuilder{
* Override getModels so it send attributes to the newInstance methods (in newExisting)
public function getModels($columns = array('*'))