Created
September 4, 2017 18:57
-
-
Save danmrichards/48e389119c5c35bccbcb078f286b2dc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app->get('/test', function () use ($app) { | |
$orders = \App\Models\Order::with('lineItems', 'payments', 'payments.metaData', 'totals', 'metaData')->get(); | |
foreach ($orders as $order) { | |
print "Spoofing order:" . $order->order_number . "\r\n"; | |
event(new \App\Events\OrderCreated($order)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment