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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -