Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1.     public function build()
  2.     {
  3.         return $this
  4.             ->subject('Order Confirmation')
  5.             ->to([
  6.                 [
  7.                     'name' => $this->order->user->name . ' ' . $this->order->user->lastname,
  8.                     'email' => $this->order->user->email,
  9.                 ],
  10.             ])
  11.             ->cc([
  12.                 [
  13.                     'name' => config('mail.to.name'),
  14.                     'email' => config('mail.to.address'),
  15.                 ],
  16.             ])
  17.             ->with([
  18.                 'billingAddress' => json_decode($this->order->billing_address, true),
  19.                 'shippingAddress' => json_decode($this->order->shipping_address, true),
  20.             ])
  21.             ->markdown('\mails\shop\order_confirmation');
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement