Skip to content

Commit

Permalink
Merge pull request #26 from Flynsarmy/master
Browse files Browse the repository at this point in the history
Support custom validation error messages
  • Loading branch information
crynobone committed Dec 31, 2013
2 parents f714f6f + f8c932e commit 2ee9ee2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Orchestra/Support/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,16 @@ public function bind(array $bindings)
*
* @param array $input
* @param string|array $event
* @param array $messages
* @return \Illuminate\Validation\Validator
*/
public function with(array $input, $events = array())
public function with(array $input, $events = array(), $messages = array())
{
$this->runQueuedOn();

$rules = $this->runValidationEvents($events);

$this->resolver = V::make($input, $rules);
$this->resolver = V::make($input, $rules, $messages);

$this->runQueuedExtend($this->resolver);

Expand Down

0 comments on commit 2ee9ee2

Please sign in to comment.