Last active
January 19, 2021 21:48
-
-
Save sam-ngu/09b99802d8b79e49af87e2992bb32915 to your computer and use it in GitHub Desktop.
A quick reference to all Laravel 7 mail markdown components. Source code to https://sam-ngu.medium.com/laravel-7-mail-markdown-components-a1afc18f6efd
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::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