class ObservedBy

Declare observers for a model using an attribute.

When placed on a model class, the specified observer(s) will be automatically registered when the model boots. Attributes on parent classes are inherited by child classes.

Methods

__construct(array|string $classes)

Create a new attribute instance.

Details

at line 33
__construct(array|string $classes)

Create a new attribute instance.

Parameters

array|string $classes