mardi 8 septembre 2020

How to create new Laravel mail component(template) and use it in email blade file

I have created a new file in resources/views/vendor/mail/html/coupon.blade.php and in resources/views/vendor/mail/markdown/coupon.blade.php

also in config/mail.php, I changed the configuration to this.

'markdown' => [
        'theme' => 'default',

        'paths' => [
            resource_path('views/vendor/mail'),
        ],
    ],

But still I am not able to use

@component('mail::coupon')

in my email blade file. its throwing following error.

Facade/Ignition/Exceptions/ViewException with message 'View [coupon] not found.


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire