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