transactionId = $transactionId; $this->transactionDate = $transactionDate; $this->quantity = $quantity; $this->price = $price; $this->totalAmount = $totalAmount; } /** * Build the message. * * @return $this */ public function build() { return $this->view('emails.transaction_notification') ->with([ 'transactionId' => $this->transactionId, 'transactionDate' => $this->transactionDate, 'quantity' => $this->quantity, 'price' => $this->price, 'totalAmount' => $this->totalAmount, ]); } }