ScopedBy
class ScopedBy
Declare global scopes to be automatically applied to the model.
Can be applied to model classes or traits. Supports both single scope class and arrays of scope classes. Attributes on parent model classes are inherited by child models. Repeatable for multiple declarations.
Methods
__construct(array|string $classes)
Create a new attribute instance.
Details
at line 24
__construct(array|string $classes)
Create a new attribute instance.