laravel/framework — pull request #4722 by lucasmichot (2014-06-15 19:50:16+00:00)
Title: [4.2] Model : firstByAttributes

Set `firstByAttributes` as public so it can be used outside the `Model` class.

Also add `$fail` flag (default to `false`) : if no instance of the model is found, a `ModelNotFoundException` will be thrown.