0

The following code:

{{ Form::error($errors->first('blah')) }}

Will produce:

<div class="help-block">My error.</div>

I want it to produce:

<span class="myError">My error.</span>

How do you do that?

1 Answer 1

3

There is no Form::error() in Laravel, so you might be using a Macro:

Form::macro('error', function()
{
    return '<div class="help-block">My error.</div>';
});

And you just have to change that code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.