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