You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed the Mailable object's build function cannot render the view if it's in a module.
If it's created in the root laravel, it seems to work, and if you send the mail immediately it works.
But if I queue it, the mail fails to send, stating that the view cannot be found.
The issue is, the view is reporting as "local.ERROR: View [emails.register] not found" even though in the class it's defined as "return $this->view('registrer::emails.register');"
Calling the class as "Mail::to($user->email)->send(new RegisterEmail($data));" works, while doing the same as a queued item "Mail::to($user->email)->queue(new RegisterEmail($data));" does not, Complaining about the view not being found.
Steps To Reproduce:
Create a mail object using the command "php artisan module:make-mail" and queue a mail to be sent.
The text was updated successfully, but these errors were encountered:
Versions:
Description:
I have noticed the Mailable object's build function cannot render the view if it's in a module.
If it's created in the root laravel, it seems to work, and if you send the mail immediately it works.
But if I queue it, the mail fails to send, stating that the view cannot be found.
The issue is, the view is reporting as "local.ERROR: View [emails.register] not found" even though in the class it's defined as "return $this->view('registrer::emails.register');"
Calling the class as "Mail::to($user->email)->send(new RegisterEmail($data));" works, while doing the same as a queued item "Mail::to($user->email)->queue(new RegisterEmail($data));" does not, Complaining about the view not being found.
Steps To Reproduce:
Create a mail object using the command "php artisan module:make-mail" and queue a mail to be sent.
The text was updated successfully, but these errors were encountered: