I'm using dev-develop version for my new project and I cannot solve an issue with uploading image. I have a standard form with image field:
{!! Form::file('image') !!}
and form opening with 'files' set to true. When I'm not using new FormRequest method injection or remove file field everything works fine. However when image field is present and I don't select any file (no validation rule is set for image field) I get following error:
InvalidArgumentException
An uploaded file must be an array or an instance of UploadedFile.
And when I select a file I get another error:
Exception
Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed
Does anyone know if I'm doing sth wrong or is it due to L5 being still in development?