We're using Laravel 9, and we store email template in our database, not in blade files.
When sending an email, we would like to use the embedData() function on the Illuminate/Mail/Message class, but how do we get this message object?
We have a class that extends Illuminate\Mail\Mailable, called App\Mail\Message.
We send mail like this:
$message = new App\Mail\Message($subject, $fullBody, $fromAddress, $replyTo, $attachments);
$message->to($address)->from($fromAddress, $fromName);
Mail::send($message);
But we want the Illuminate/Mail/Message message object, because we want the embed function. How can we get this object?