Merge pull request #1461 from AustinW/master

Minor corrections to the documentation and using Input::json() with Validator
This commit is contained in:
Taylor Otwell
2013-01-05 12:06:53 -08:00
3 changed files with 4 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ class Validator {
/**
* Create a new validator instance.
*
* @param array $attributes
* @param mixed $attributes
* @param array $rules
* @param array $messages
* @return void
@@ -89,7 +89,7 @@ class Validator {
$this->rules = $rules;
$this->messages = $messages;
$this->attributes = $attributes;
$this->attributes = (is_object($attributes)) ? get_object_vars($attributes) : $attributes;
}
/**