예제 #1
0
 public function reply(Request $request)
 {
     $msg = Contact::find(request('msg_id'));
     $msg->is_replied = 1;
     $msg->comment = request('comment');
     $msg->save();
     $this->dispatch(new SendReplyEmail($msg->email, request('comment')));
     $message = 'تم الحفظ';
     return redirect()->route('contact.show', $msg->id)->with('success', $message);
 }