[5.0] Foundation  : allows FormRequest to handle input and files

Fixes https://github.com/laravel/framework/issues/5829