Attribute
class Attribute (View source)
Properties
Methods
__construct(callable|null $get = null, callable|null $set = null)
Create a new attribute accessor / mutator.
static Attribute
make(callable|null $get = null, callable|null $set = null)
Create a new attribute accessor / mutator.
withoutObjectCaching()
Disable object caching for the attribute.
shouldCache()
Enable caching for the attribute.
Details
__construct(callable|null $get = null, callable|null $set = null)
Create a new attribute accessor / mutator.
static Attribute
make(callable|null $get = null, callable|null $set = null)
Create a new attribute accessor / mutator.