You've already forked laravel-mail-templates
fix: flush recipients
This commit is contained in:
@@ -97,7 +97,9 @@ class MailTemplate implements \JsonSerializable
|
|||||||
*/
|
*/
|
||||||
public function recipients(array $recipients): MailTemplate
|
public function recipients(array $recipients): MailTemplate
|
||||||
{
|
{
|
||||||
if (!empty($recipients)) {
|
$this->recipients = [];
|
||||||
|
|
||||||
|
if (! empty($recipients)) {
|
||||||
foreach ($recipients as $recipient) {
|
foreach ($recipients as $recipient) {
|
||||||
if (!empty($recipient[0]) && is_string($recipient[0])) {
|
if (!empty($recipient[0]) && is_string($recipient[0])) {
|
||||||
$data = [
|
$data = [
|
||||||
|
|||||||
Reference in New Issue
Block a user