-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
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
[9.x] Update Mailable.php #40868
[9.x] Update Mailable.php #40868
Conversation
Allow `->from(new Address($address, $name))` support again (was `->from($address, $name)` in Laravel 8).
Just to be clear, with the Laravel 9, the call to In this case, I still suggest an update to the guide: Instead of using |
Are we unable to support |
@taylorotwell I do not see any problem to keep support to old way (that I personally prefer). But the current code is: public function from(Address|string ...$addresses): static
{
return $this->setListAddressHeaderBody('From', $addresses);
} To support old way it need be modified. The PR is only a fix to supports also |
Ah! It seems these methods are provided directly by Symfony Mailer. Anyway, the Laravel Message will create an Address instance and the exception will be throw anyway: framework/src/Illuminate/Mail/Message.php Lines 42 to 56 in fbe7ed8
|
Hmm, so does |
Thanks |
Allow
->from(new Address($address, $name))
support again (was->from($address, $name)
in Laravel 8).