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

tpetry's avatar

Validation Attribute Names in Blade Template

Hi, i am currently testing laravel for a new project. The validation logic is really neat and one of the best i have seen. But i am currently testing how to get nice attribute names into the validation errors.

The suggested solution seems to be setting the attribute names for the validator. But if you have got an html form your attribute label will be defined there. So by setting the nice attribute name within the validator you have to keep track of 2 location for an input name whenever you rename it.

Is there some plugin or way to set a nice custom attribute within the blade template to not have to name an input in 2 locations?

0 likes
0 replies

Please or to participate in this conversation.