<?php
 namespace App\Observers; use App\Core\Hook\HookBridge; use App\Models\Product; class ProductObserver { public function updated(Product $product): void { $bridge = app(HookBridge::class); $bridge->fireAction('ProductEdit', $bridge->buildProductContext($product)); } public function deleted(Product $product): void { $bridge = app(HookBridge::class); $bridge->fireAction('ProductDelete', $bridge->buildProductContext($product)); } } 