Created
May 21, 2019 00:59
-
-
Save sam-ngu/09b6c6e74392d0ee2f18d44c06e3bbb8 to your computer and use it in GitHub Desktop.
list of laravel mail markdown components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.