<?php

/**
 * Base model for Quill
 */
class BaseModel extends Eloquent {

	protected $guarded = ['id'];

	public $errors;

	public function validate()
	{
		$v = Validator::make($this->attributes, static::$rules);
		if ($v->passes()) return true;
		$this->errors = $v->messages();
		return false;
	}

}

<?php

/**
 * Base model for Quill
 */
class BaseModel extends Eloquent {

	protected $guarded = ['id'];

	public $errors;

	public static $messages = array();

	public function validate()
	{
		$v = Validator::make($this->attributes, static::$rules, static::$messages);
		if ($v->passes()) return true;
		$this->errors = $v->messages();
		return false;
	}

}

Allow custom validation error messages to be set on models
Allow custom validation error messages to be set on models
