MorphPivot::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

MorphPivot::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

MorphPivot::hasGlobalScope()

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

MorphPivot::hasGetMutator()

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

MorphPivot::guard()

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

MorphPivot::getVisible()

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

MorphPivot::getUpdatedAtColumn()

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

MorphPivot::getTouchedRelations()

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

MorphPivot::getTable()

string getTable() Get the table associated with the model. Return Value string

MorphPivot::getRouteKeyName()

string getRouteKeyName() Get the route key for the model. Return Value string