Skip to content

Commit

Permalink
check for files
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 14, 2017
1 parent d31d870 commit e08714d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ function request($key = null, $default = null)
return app('request')->only($key);
}

if (app('request')->hasFile($key)) {
return app('request')->file($key);
}

return app('request')->input($key, $default);
}
}
Expand Down

0 comments on commit e08714d

Please sign in to comment.