refactoring.

This commit is contained in:
Taylor Otwell
2011-09-26 21:48:06 -05:00
parent ed3e3e73cc
commit 54c69d8c9f
7 changed files with 89 additions and 36 deletions

View File

@@ -285,7 +285,9 @@ class Validator {
$value = $this->attributes[$attribute];
return (array_key_exists($attribute, $_FILES)) ? $value['size'] / 1024 : Str::length(trim($value));
$files = IoC::container()->resolve('laravel.input')->files();
return (array_key_exists($attribute, $files) ? $value['size'] / 1024 : Str::length(trim($value));
}
/**