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).