get('branding.site_name'); $userEmail = $this->message['email']; return (new MailMessage()) ->subject( __('New message via :siteName contact page.', [ 'siteName' => $siteName, ]), ) ->greeting( __("New message via :siteName contact page from ':userEmail'", [ 'siteName' => $siteName, 'userEmail' => $userEmail, ]), ) ->salutation(' ') ->from(config('mail.from.address'), config('mail.from.name')) ->replyTo($userEmail, $this->message['name']) ->line($this->message['message']); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }