watchedProperties

The watchedProperties method returns an array with all the public properties that have a custom event set.

$productWatchedProperties = Product::watchedProperties();

// WILL RETURN
[
    'price' => PriceChangedEvent::class,
]

Last updated