芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Mail/TicketReply.php
ticketEmailSetting = $ticketEmailSetting; $this->ticketReply = $ticketReply; Config::set('app.logo', $ticketEmailSetting->company->masked_logo_url); } /** * Build the message. * * @return $this */ public function build() { $previousReply = ModelsTicketReply::where('ticket_id', $this->ticketReply->ticket_id) ->whereNotNull('imap_message_id')->orderBy('id', 'desc') ->first(); if ($this->ticketEmailSetting->status == 1) { $this->from($this->ticketEmailSetting->mail_from_email, $this->ticketEmailSetting->mail_from_name) ->subject($this->ticketReply->ticket->subject) ->view('emails.ticket.reply'); if (!is_null($previousReply) && !is_null($previousReply->imap_message_id)) { ModelsTicketReply::where('id', $this->ticketReply->id)->update(['imap_message_id' => $previousReply->imap_message_id]); } return $this; } return $this; } }