Support the ongoing development of Laravel.io →
Input Forms

Does Input::hasFile() work with arrays? It returns false on a form I've created if the the first file input is empty, and the second contains a file. It returns true if the first input contains a file. I have more forms to build that might have even more file inputs. Or, should I just be using a foreach?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.