Ask, reply and learn. Join the community of Akaunting.
Hi! I have currently figured out how to override the invoice template by creating a new module. Now I want to figure out how to override the email template that gets sent. I have found out that the view files are located in resources/views/vendor/mail/[html/ or markdown/], but I am not sure how to override these files as it does not work the same as overriding the invoice template using a ViewComposer for some reason.
What I've tried is adding
View::composer(
['vendor.mail.html.message'], 'Modules\MyModule\Http\ViewComposers\Mail'
);
to my MyModuleServiceProvider.php, but it does not seem to work.
Can anyone tell me what the proper way is to override the email template in version 1.3.17.
P.S. I know version 2 comes with edible email templates but I still want full control over the layout, so that's why I still want to be able to override these files.
Thanks in advance!
I mean editable* ofcourse, lol.
Hello Stan,
Can you please try to remove the "vendor" part from "vendor.mail.html.message" in service provider?
Regards
Showing 1 to 3 of 3 discussions