Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement