Support the ongoing development of Laravel.io →
posted 7 years ago
Input Forms
Last updated 2 years ago.
0

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

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

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!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.