Gabotronix
6 months ago

Remove header from laravel markdown template

Posted 6 months ago by Gabotronix

Hi everybody, I'm trying to remove the header part from laravel's markdown template but it's not working, I published the files into my vendor folder and all.

This is my message component:

@component('mail::layout')
    {{-- Body --}}
    {{ $slot }}

    {{-- Subcopy --}}
    @isset($subcopy)
        @slot('subcopy')
            @component('mail::subcopy')
                {{ $subcopy }}
            @endcomponent
        @endslot
    @endisset

    {{-- Footer --}}
    @slot('footer')
        @component('mail::footer')
            © {{ date('Y') }} {{ env('APP_NAME') }}.
        @endcomponent
    @endslot
@endcomponent

And my layout file:



{!! strip_tags($slot) !!}
@isset($subcopy)

{!! strip_tags($subcopy) !!}
@endisset

{!! strip_tags($footer) !!}

Any help?

Also, is it possible to make my own markdown template without using default layout? I tried adding laravel markdown components directly into my mail blade.php files but everything lookied like trash and uncentered.

Thanks in advance.

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