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?
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community