message
parent
deaac7e1c2
commit
8fc76a1344
|
|
@ -15,8 +15,8 @@ class SendFeedbackMessage {
|
|||
'email' => $event->email,
|
||||
'data' => $event->data,
|
||||
];
|
||||
mail('sergey@bodin.ru', 'Error', print_r($array, 1));
|
||||
//Mail::to($event->email)->send(new FeedbackSender($event->data));
|
||||
//mail('sergey@bodin.ru', 'Error', print_r($array, 1));
|
||||
Mail::to($event->email)->send(new FeedbackSender());
|
||||
} catch (\Exception $exception) {
|
||||
mail('sergey@bodin.ru', 'Error', $exception->getTraceAsString());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ class FeedbackSender extends Mailable implements ShouldQueue {
|
|||
|
||||
public array $data;
|
||||
|
||||
public function __construct(array $data) {
|
||||
$this->data = $data;
|
||||
public function __construct() {
|
||||
//$this->data = $data;
|
||||
}
|
||||
|
||||
public function build() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue