master
sergeybodin 2023-07-14 13:40:27 +03:00
parent 7bf3cc75f8
commit 5b7d0098b5
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ class FeedbackSender extends Mailable implements ShouldQueue {
} }
public function build() { public function build() {
$type = DictionaryItem::byUuid($this->data['feedback-type'])->pluck('title'); $dictionary = DictionaryItem::byUuid($this->data['feedback-type'])->first();
$this->data['feedback-type'] = $type; $this->data['feedback-type'] = $dictionary->title;
return $this->subject('Сообщение из обратной связи')->view('mail.feedback.support'); return $this->subject('Сообщение из обратной связи')->view('mail.feedback.support');
} }
} }