param = $param; } public function build() { try { $params = $this->param; $mailSenderAddress = Config::get('app.mailSenderAddress'); /*echo view('emails.bookingEngineSearchReportMail', compact('params')); die();*/ $bcc = $params['propertyUserEmail']; return $this->from($mailSenderAddress, 'Extranetwork') ->view('emails.bookingEngineSearchReportMail', compact('params')) ->to($mailSenderAddress, 'Extranetwork') ->bcc($bcc) ->subject($params['propertyName'].' - Günlük İşlem Raporu : '. $params['date']); } catch (Exception $e) { $message = $e->getFile() . " " . $e->getLine() . " " . $e->getMessage(); Log::error($message); return output(['status' => -1, 'message' => $e->getMessage()]); } } }