Skip to content

Commit

Permalink
Updated package for watson/validating dependency. Added badges to rea…
Browse files Browse the repository at this point in the history
…dme. Turned off ValidatingExceptions by default.
  • Loading branch information
dalabarge committed Jun 26, 2014
1 parent 3d7bea4 commit 8c857ae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"illuminate/hashing": "4.2.*",
"illuminate/support": "4.2.*",
"illuminate/validation": "4.2.*",
"watson/validating": "dev-develop"
"watson/validating": "0.8.1"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
Expand All @@ -33,5 +33,5 @@
"Esensi\\Model\\": "src/"
}
},
"minimum-stability": "dev"
"minimum-stability": "stable"
}
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Esensi Model Traits Package

[![Build Status](https://travis-ci.org/esensi/model.svg)](https://travis-ci.org/esensi/model)
[![Total Downloads](https://poser.pugx.org/esensi/model/downloads.svg)](https://packagist.org/packages/esensi/model)
[![Latest Stable Version](https://poser.pugx.org/esensi/model/v/stable.svg)](https://packagist.org/packages/esensi/model)
[![License](https://poser.pugx.org/esensi/model/license.svg)](https://packagist.org/packages/esensi/model)

An [Esensi](https://github.com/esensi) package, coded by [Emerson Media](http://www.emersonmedia.com).

> **Want to work with us on great Laravel applications?**
Expand Down
8 changes: 8 additions & 0 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ abstract class Model extends Eloquent implements
*/
protected $injectUniqueIdentifier = true;

/**
* Whether the model should throw ValidatingException when
* the model fails validation.
*
* @var boolean
*/
protected $throwValidationExceptions = false;

/**
* Dynamically retrieve attributes.
*
Expand Down

0 comments on commit 8c857ae

Please sign in to comment.