wip
This commit is contained in:
1 parent
9e1bc40d9f
commit
3806df2a00
4 files changed
+43
-23
No files matched your search
@@ -11,14 +11,14 @@ class SendNewsletterJob implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public $mail_data;
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct($mail_data)
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->mail_data = $mail_data;
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -26,6 +26,6 @@ class SendNewsletterJob implements ShouldQueue
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
Mail::to($this->mail_data->email)->send(new Newsletter($this->mail_data));
|
||||
Mail::to($this->data['email'])->send(new Newsletter($this->data));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user