Support the ongoing development of Laravel.io →
Forms Validation

I have a hidden form array:

Form::hidden('new_image_ids[]');

If the form is returned because of an error in validation, I get the following error:

htmlentities() expects parameter 1 to be string, array given

What am I doing wrong?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

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.