Guest User

Untitled

a guest
Jan 14th, 2020
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function build()
  2.     {
  3.         return $this
  4.             ->subject('Order Confirmation')
  5.             ->to(config('mail.to'), [
  6.                 [
  7.                     'name' => $this->order->user->name . ' ' . $this->order->user->lastname,
  8.                     'email' => $this->order->user->email,
  9.                 ],
  10.             ])
  11.             ->with([
  12.                 'billingAddress' => json_decode($this->order->billing_address, true),
  13.                 'shippingAddress' => json_decode($this->order->shipping_address, true),
  14.             ])
  15.             ->markdown('\mails\shop\order_confirmation');
  16.     }
RAW Paste Data