Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

droplister's avatar

Empty ErrorBag When There are Many Validation Errors

I have very lax validation for an editor, when someone is just clicking to save their progress and then I do a stricter validation if they are trying to publish.

What I am noticing is that, if I try to publish and I haven't filled in anything, the form request fails due to the validator failing to pass, however, no errors are displayed. This persists until I fill in a sufficient number of inputs.

So, I think what's happening is the error bag response is very large and that's the issue. Is this related to Laravel or my php/nginx server settings around how large requests can be?

0 likes
3 replies
droplister's avatar

If I submit a form which I know to have 7-13 invalid inputs I get:

ViewErrorBag {#359 ▼
  #bags: []
}

At 6 invalid inputs or less, I get errors correctly.

1 like
fulopattila122's avatar

I just found this thread with my own solution from 2 years ago after googling for 2+ hours. Had to upvote myself 😖

Please or to participate in this conversation.