order = $order; $this->order->load('customer', 'shipping_address', 'billing_address'); } public function toArray(): array { return [ 'order' => $this->order, 'customer' => $this->order->customer ?? [], ]; } public function getActivityEventModel() { return $this->order; } public function afterDispatch() { do_action($this->hook, $this->toArray()); } public function shouldCreateActivity(): bool { return true; // TODO: Change the autogenerated stub } }