inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.01k stars 224 forks source link

feat: validation errors can return all error messages #582

Closed squiaios closed 3 months ago

squiaios commented 7 months ago

Right now, when you have errors with multiple messages, only the first is returned as string.

I added a function returnOnlyFirstErrorMessage in middleware in order to be able to overide on our app if we want to display all the messages in an array

driesvints commented 3 months ago

Tests fail here