data = $data; } /** * @return $this */ public function build() { return $this->subject(__('notification_view_invoice')) ->from(config('mail.from.address'), config('mail.from.name')) ->markdown('emails.viewed.invoice', [ // Handed over as a list, not as a keyed array. The numeric // keys that produces are inert: the view reads $data, which // Laravel already supplies from the public property above. 'data', $this->data, ]); } }