From 5b7d0098b506d05199a260e27557eec4959c8423 Mon Sep 17 00:00:00 2001 From: sergeybodin Date: Fri, 14 Jul 2023 13:40:27 +0300 Subject: [PATCH] message --- app/Mail/FeedbackSender.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); } }