laravel/framework — pull request #5372 by violarium (2014-08-07 18:03:13+00:00)
Title: Session flash input now filters Symfony uploaded files, because they are...

When you try to write in your controller code like this:
\Redirect::route('home')->withInput();

And if you have uploaded file (Symfony\Component\HttpFoundation\File\UploadedFile) in your input, you will get an error:
Serialization of '...' is not allowed

Which is an error because saving session serializes data and symfony object extends \SplFileInfo, which is not allowed to serialization.
It's normal because this object represents a resource.

But I think, redirect with old input is normal. Uploading files is normal too. So, that error should not happen.
In this case I suggest filtering such values on saving input to session.

First time I thought to just filter all unserializable values on save in Store class. But, I guess, it better to see an error when you do such things without saving old input ot you try to store another unserializable object.