1

I'm trying to render a pretty list in a Laravel Exception. The code which I have:

if (count($notValidatedProducts) !== 0) {
    throw new Exception('Could not create invoice. \n<br> test');
}

I tried the \n and <br> but non are working in the view. I can't find any documentation if this is even possible.

1 Answer 1

2

well if you are asking about how you can make a new line input \n or <br>

you can try this :

if (count($notValidatedProducts) !== 0) {
throw new Exception('Could not create invoice.'."\r\n".'test');

}

good luck

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.