feedback form minor fix

master
Константин 2023-12-30 13:14:43 +03:00
parent 01ae9c700f
commit 3a1817d2ef
1 changed files with 1 additions and 4 deletions

View File

@ -2,7 +2,6 @@
namespace App\Mail; namespace App\Mail;
use App\Models\Dictionaries\DictionaryItem;
use Illuminate\Bus\Queueable; use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailable;
@ -18,8 +17,6 @@ class FeedbackSender extends Mailable implements ShouldQueue {
} }
public function build() { public function build() {
$dictionary = DictionaryItem::byUuid($this->data['feedback-type'])->first(); return $this->subject('Поступило новое обращение')->view('mail.feedback.support');
$this->data['feedback-type'] = $dictionary->title;
return $this->subject('Поступило обращение с сайта')->view('mail.feedback.support');
} }
} }