Support the ongoing development of Laravel.io →
posted 10 years ago
Validation
Last updated 2 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 9 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.

© 2024 Laravel.io - All rights reserved.