Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active July 7, 2020 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/cd056aaa23f704708894b8f65fccb9f5 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/cd056aaa23f704708894b8f65fccb9f5 to your computer and use it in GitHub Desktop.
<?php
$invoice_id = $payload['data']['object']["invoice"];
$order->update([
'invoice_id' => $invoice_id,
'status' => Order::SUCCESS
]);
Mail::to($user->email)->send(
new StudentNewOrder($user, $order)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment