Telling people what happened.
WHAT TO SHOW AFTER AN ACTION
Confirmation of what occurred.
HOW LARAVEL SUPPORTS IT
Flash data, which survives a redirect and is then discarded.
WHY REDIRECT AFTER A SUBMISSION
It prevents resubmission when the page is refreshed.
WHAT TO FLASH
A short message stating the result.
WHAT TO DISPLAY
Success, warning and error messages, styled distinctly.
WHERE
Somewhere consistent, visible without scrolling.
WHAT TO AVOID
Messages that disappear before being read Messages for trivial actions, which become noise Messages saying only that something succeeded, with no detail
WHAT TO INCLUDE FOR SOMETHING SIGNIFICANT
What happened, and a reference where relevant.
WHAT TO DO ABOUT VALIDATION ERRORS
Display them with the form, beside each field, not as a flash message.
WHAT TO ENSURE
That messages are announced to assistive technology.
WHAT TO TEST
That the message appears once, and does not reappear on refresh.