Support the ongoing development of Laravel.io →
Requests Forms

I'm using a form request (\App\Http\Requests) for validation, and want to customize a few of my error messages. I found this in the docs: http://puu.sh/gtizr/589db18e6c.png (from the docs page at http://laravel.com/docs/5.0/validation#custom-error-messages) ...but how do I make this work in my request class?

Last updated 2 years ago.
0

Noodles in IRC helped me, thank you :)

Just have to create a public messages() method in the form request class. ie) http://laravel.io/bin/vBmxr#35-42

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.