# fluent-cart/1.4.1/app/Events/Order/OrderUpdated.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.4.1. 45 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.4.1/code/app/Events/Order/OrderUpdated.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.4.1/raw/app/Events/Order/OrderUpdated.php
- Modified: 2026-06-11T12:21:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.4.1/code/app/Events/Order/OrderUpdated.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Events\Order;

use FluentCart\App\Events\EventDispatcher;
use FluentCart\App\Listeners;
use FluentCart\App\Models\Order;

class OrderUpdated extends EventDispatcher
{
    public string $hook = 'fluent_cart/order_updated';

    protected array $listeners = [
//        Listeners\UpdateStock::class,
        Listeners\Order\OrderUpdated::class
    ];

    /**
     * @var Order $order
     */
    public Order $order;
    public Order $oldOrder;

    public function __construct(Order $order, Order $oldOrder)
    {
        $this->order = $order;
        $this->order->load('customer', 'shipping_address', 'billing_address');
        $this->oldOrder = $oldOrder;
        $this->oldOrder->load('customer', 'shipping_address', 'billing_address');
    }

    public function toArray(): array
    {
        return [
            'order'     => $this->order,
            'old_order' => $this->oldOrder
        ];
    }

    public function getActivityEventModel()
    {
        return $this->order;
    }
}

```
