eod
This commit is contained in:
parent
4ca6a3ebd8
commit
7b39edd094
|
|
@ -47,12 +47,6 @@ public function content(): Content
|
|||
htmlString: $this->mailing->message,
|
||||
);
|
||||
}
|
||||
public function build(): self
|
||||
{
|
||||
$this->to($this->mailing->recipients()->pluck('email')->toArray());
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attachments for the message.
|
||||
|
|
|
|||
|
|
@ -20,8 +20,9 @@ class ProjectMailing extends Model
|
|||
|
||||
protected static function booted()
|
||||
{
|
||||
static::created(function ($projectMailing) {
|
||||
Mail::send(new \App\Mail\ReportMailer($projectMailing));
|
||||
static::created(function (ProjectMailing $projectMailing) {
|
||||
Mail::to($projectMailing->recipients()->pluck('email')->toArray())
|
||||
->send(new \App\Mail\ReportMailer($projectMailing));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue