Cant wrap my head around markdown mailables

Posted 11 months ago by Jantlap


Im struggling with markdown mailables, I want to have different footer for every e-mail. So Im trying:

    {{-- Header --}}
        @component('mail::header', ['url' => config('app.url')])
            <!-- header here -->

    {{-- Body --}}
    # {{__('emails.digest.header')}}

    {{__('emails.digest.first_paragraph', ['list_name' => 'List name'])}}

    {{__('emails.digest.subscribed')}} 1

    {{__('emails.digest.unsubscribed')}} 1

    {!! __('emails.digest.unsub', ['account' => 'acc', 'list_id' => 1]) !!}


    {{-- Subcopy --}}
            <!-- subcopy here -->

    {{-- Footer --}}
            <!-- footer here -->

But that way the body is broken. Am I missing something?

Thanks for claryfying.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.