Skip to content

Instantly share code, notes, and snippets.

@sam-ngu
Created May 21, 2019 00:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam-ngu/09b6c6e74392d0ee2f18d44c06e3bbb8 to your computer and use it in GitHub Desktop.
Save sam-ngu/09b6c6e74392d0ee2f18d44c06e3bbb8 to your computer and use it in GitHub Desktop.
list of laravel mail markdown components
@component('mail::message')
# Introduction
The body of your message.
@component('mail::button', ['url' => ''])
Button Text
@endcomponent
@component('mail::panel')
This is a panel
@endcomponent
## Table component:
@component('mail::table')
| Laravel | Table | Example |
| ------------- |:-------------:| --------:|
| Col 2 is | Centered | $10 |
| Col 3 is | Right-Aligned | $20 |
@endcomponent
@component('mail::promotion')
This is a promotion component
@endcomponent
@component('mail::subcopy')
This is a subcopy component
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent
@sam-ngu
Copy link
Author

sam-ngu commented Jan 19, 2021

which laravel version are you using?
Did you modify the default mail components? This to me seems like laravel can't render the markdown mail components correctly, because there are syntax / spacing issues.
I would remove and republish the mail components and start fresh. Or try with a fresh laravel installation.

@vucurovicmarko
Copy link

@sparkle32817 remove all indentations in markdown blade views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment