htmlspecialchars() expects parameter 1 to be string, array given
<p>I have a form and if i submit the form with all the right data everything goes perfectly fine... but if I intentionally make any flaw </p>

<p>(validation for example <code>'title' =&gt; 'required|min:2'</code>) </p>

<p>and I put only one character for title or if I miss any required field I get this error:</p>

<pre><code>htmlspecialchars() expects parameter 1 to be string, array given
</code></pre>

<p><a href="https://i.stack.imgur.com/t4Hbe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t4Hbe.png" alt="enter image description here"></a></p>

<p>I have figured out that the problem is with this select box </p>

<pre><code>{!! Form::select('item[0][]', $items, null, ['class' =&gt; 'form-control', 'required']) !!}
</code></pre>

<p>and I even tried to use a normal select box without form helper {!! !!}</p>

<p>But I still get the same error!</p>

<p>So the problem is somewhere with validation when there is a nested array....is there a way to fix this?</p>