Pivot::hasSetMutator()

bool hasSetMutator(string $key) Determine if a set mutator exists for an attribute. Parameters string $key Return Value bool

Pivot::hasTimestampAttributes()

bool hasTimestampAttributes() Determine if the pivot model has timestamp attributes. Return Value bool

Pivot::hydrate()

static Collection hydrate(array $items, string|null $connection = null) Create a collection of models from plain arrays. Parameters array $items string|null $connection Return Value Collection

Pivot::hydrateRaw()

static Collection hydrateRaw(string $query, array $bindings = array(), string|null $connection = null) Create a collection of models from a raw query. Parameters string $query array $bindings string|null $connection Return Value Collection

Pivot::isDirty()

bool isDirty(array|string|null $attributes = null) Determine if the model or given attribute(s) have been modified. Parameters array|string|null $attributes Return Value bool

Pivot::isFillable()

bool isFillable(string $key) Determine if the given attribute may be mass assigned. Parameters string $key Return Value bool

Pivot::isGuarded()

bool isGuarded(string $key) Determine if the given key is guarded. Parameters string $key Return Value bool

Pivot::isUnguarded()

static bool isUnguarded() Determine if current state is "unguarded". Return Value bool

Pivot::joiningTable()

string joiningTable(string $related) Get the joining table name for a many-to-many relation. Parameters string $related Return Value string

Pivot::jsonSerialize()

array jsonSerialize() Convert the object into something JSON serializable. Return Value array