Skip to content

Instantly share code, notes, and snippets.

@sam-ngu
Last active January 19, 2021 21:48
Show Gist options
  • Save sam-ngu/09b99802d8b79e49af87e2992bb32915 to your computer and use it in GitHub Desktop.
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
@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