Support the ongoing development of Laravel.io →
posted 11 years ago
Validation

On "Working With Error Messages" section of Validation on the document pages, it has has been noted that:

Note: By default, messages are formatted using Bootstrap compatible syntax.

But it returns plain text. Is that a joke to call that formatting using Bootstrap compatible syntax?

Last updated 3 years ago.
0

I noticed that also while reading the documentation, don't know what are they exactly mean for that I just used the messagebag instance for setting up the default format

$errors->setFormat("<div class='alert alert-danger'>:message</div>");

or after validation like that

$validator->messages()->setFormat("<div class='alert alert-danger'>:message</div>");
return View::make('formview')->withErrors($validator);

but I don't know how to setFormat Globally, I think this is not a big problem

Last updated 10 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Debiprasad debiprasad Joined 18 Jun 2014

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.