php - Laravel 5 error message attributes -
is there way add additional attributes laravel error messages?
witherrors
method seems allow setting either string message or messagebag (which comes validator) response errors can accessed in templates (from session).
is there way somehow customise messages? being able add/set attributes (like color, priority, source, icon etc.) message , retrieve them in template allow me "decide" how present it.
i guess 1 way using named message bags, that's not convenient. in fact way "group" messages , have walk through every possible group in template anyway.
any ideas?
thank you
validation error messages key-value pairs "standard" properties cannot applied easily.
it possible customize error messages text. if using form request validation use function messages()
sometimes adding custom variables view, example myerror know display differently.