Support the ongoing development of Laravel.io →
posted 5 years ago
Input Forms
Last updated 4 months ago.
0

How about using 2 different FormRequests and specifying the messages() function?

https://laravel.com/docs/5.4/validation#customizing-the-error-...

Or if you're using a single FormRequest you could maybe dynamically set the messages return array by checking a form id hidden input field

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

aND04 and04 Joined 14 Mar 2017

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.