I cant seem to connect my mailable to its blade view. this is my markdown in the mailable build function:
->markdown('emails.exmpl');
I built the blade view inside Modules\ContactUs\Resources\Views\Emails
calling it exmpl.blade.php
however i get this error:
View [emails.exmpl] not found.
By default the path is resources/views/emails/exmpl
but here your blade is in a different module. Might I suggest trying
->markdown('/Modules/ContactUs/Resources/Views/Emails/exmpl')
Keep me posted in the comments below.
If you need to specify module on view method use:
$moduleName = "ContactUs";
return view($moduleName . "::pages.main");
This helped me !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.