Laravle Mail Markdown Components

Laravel mail components list.

Laravel mail template for blade view.

Generally, laravel makes a default mail template when you create a mailable class. Which is pretty simple with a message, button and app name.

This is how it looks:

@component('mail::message')
# Introduction

The body of your message.

@component('mail::button', ['url' => ''])
Button Text
@endcomponent

Thanks,<br>
{{ config('app.name') }}
@endcomponent

Components are:

  • button
  • message
  • panel
  • promotion
  • subcopy
  • table

Related Posts