Decrease Inventory Asset Quantity

Please i have an asset resource that i can add product with quantity and i have an inventoryRequest resource that i can retrieve the product added from asset with quantity, I want the quantity to reduce or decrease whenever i retrieve in inventoryRequest
Solution
in your
inventoryRequest

you can use a hook
protected function afterCreate(): void
    {
        // Runs after the form fields are saved to the database.
dd($this-record);
    }
Was this page helpful?