Skip to content

Instantly share code, notes, and snippets.

View n00ge's full-sized avatar
💭
Writing code at The Futures App

Chad Calhoun n00ge

💭
Writing code at The Futures App
View GitHub Profile
@n00ge
n00ge / gist:6779758
Last active December 24, 2015 09:49 — forked from JonoB/gist:6637861
A fix for unique validation when updating models in Laravel 4
<?php namespace Tmb;
use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Validation\Validator;
class BaseModel extends Eloquent
{
/**
* Error message bag