Pivot::getTouchedRelations()

array getTouchedRelations() Get the relationships that are touched on save. Return Value array

Pivot::getUpdatedAtColumn()

string getUpdatedAtColumn() Get the name of the "updated at" column. Return Value string

Pivot::getVisible()

array getVisible() Get the visible attributes for the model. Return Value array

Pivot::guard()

$this guard(array $guarded) Set the guarded attributes for the model. Parameters array $guarded Return Value $this

Pivot::hasCast()

bool hasCast(string $key, array|string|null $types = null) Determine whether an attribute should be cast to a native type. Parameters string $key array|string|null $types Return Value bool

Pivot::hasGetMutator()

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

Pivot::hasGlobalScope()

static bool hasGlobalScope(Scope|string $scope) Determine if a model has a global scope. Parameters Scope|string $scope Return Value bool

Pivot::hasMany()

HasMany hasMany(string $related, string $foreignKey = null, string $localKey = null) Define a one-to-many relationship. Parameters string $related string $foreignKey string $localKey Return Value HasMany

Pivot::hasManyThrough()

HasManyThrough hasManyThrough(string $related, string $through, string|null $firstKey = null, string|null $secondKey = null, string|null $localKey = null) Define a has-many-through relationship. Parameters string $related string $through string|null $firstKey string|null $secondKey string|null $localKey Return Value HasManyThrough

Pivot::hasOne()

HasOne hasOne(string $related, string $foreignKey = null, string $localKey = null) Define a one-to-one relationship. Parameters string $related string $foreignKey string $localKey Return Value HasOne