Refactoring Input class.

This commit is contained in:
Taylor Otwell 2011-07-08 08:24:57 -07:00
parent c2b7e60bdd
commit c5a2752e8a
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public static function file($key = null, $default = null)
{
list($file, $key) = explode('.', $key);
return (isset($_FILES[$file][$key])) ? $_FILES[$file][$key] : $default;
return Arr::get($_FILES[$file], $key, $default);
}
return Arr::get($_FILES, $key, $default);