We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to set locale on Mailables was added in #23178 But there is a bug: The $locale variable in Mailable class does not serializes.
/** * Build the message. * * @return $this */ public function build() { return $this->view('myview')->locale('lv'); }
And now, if we look into serialized job, we will see:
s:6:\"locale\";N;
When job starts running, instance does not receive locale.
/** * Send the invoice. * * @param \Illuminate\Contracts\Mail\Mailer $mailer * @return void */ public function send(MailerContract $mailer) { dd($this->locale); // NULL }
The text was updated successfully, but these errors were encountered:
I can't replicate this, works fine for me.
Sorry, something went wrong.
No branches or pull requests
Description:
Ability to set locale on Mailables was added in #23178
But there is a bug:
The $locale variable in Mailable class does not serializes.
Steps To Reproduce:
And now, if we look into serialized job, we will see:
s:6:\"locale\";N;
When job starts running, instance does not receive locale.
The text was updated successfully, but these errors were encountered: