properly pass the data array into the 'checkout.order.safe.before' event
This commit is contained in:
parent
1b7b6f91bd
commit
ef99a1e981
|
|
@ -65,7 +65,7 @@ class OrderRepository extends Repository
|
|||
DB::beginTransaction();
|
||||
|
||||
try {
|
||||
Event::dispatch('checkout.order.save.before', $data);
|
||||
Event::dispatch('checkout.order.save.before', [$data]);
|
||||
|
||||
if (isset($data['customer']) && $data['customer']) {
|
||||
$data['customer_id'] = $data['customer']->id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue