Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel markdown mail vs blade templating

In laravel, new markdown feature for mailing provides some components to customize mail. I like them. They are cool but how are they different from blade layout as long as I can do the same with normal blade layout.

like image 577
Abdur Rahman Avatar asked Oct 26 '25 05:10

Abdur Rahman


1 Answers

Markdown email gives you a simplified syntax compared to HTML. For example:

  • instead of wrapping headings in h1, h2, etc. tags, you can just put a #, ##, etc. at the beginning of the line
  • no need to wrap lists in <ul>, and list items in <li> tags. In markdown, you can just use a dash (-) for listing elements
  • italic/bold font can be achieved by putting */** around the text you want to emphasize

The above, and other features of markdown can make your templates more readable.

like image 97
Amade Avatar answered Oct 28 '25 19:10

Amade