MorphPivot::toArray()

array toArray() Convert the model instance to an array. Return Value array

MorphPivot::syncOriginalAttribute()

$this syncOriginalAttribute(string $attribute) Sync a single original attribute with its current value. Parameters string $attribute Return Value $this

MorphPivot::syncOriginal()

$this syncOriginal() Sync the original attributes with the current. Return Value $this

MorphPivot::setVisible()

$this setVisible(array $visible) Set the visible attributes for the model. Parameters array $visible Return Value $this

MorphPivot::setUpdatedAt()

$this setUpdatedAt(mixed $value) Set the value of the "updated at" attribute. Parameters mixed $value Return Value $this

MorphPivot::setTouchedRelations()

$this setTouchedRelations(array $touches) Set the relationships that are touched on save. Parameters array $touches Return Value $this

MorphPivot::setTable()

$this setTable(string $table) Set the table associated with the model. Parameters string $table Return Value $this

MorphPivot::setRelations()

$this setRelations(array $relations) Set the entire relations array on the model. Parameters array $relations Return Value $this

MorphPivot::setRelation()

$this setRelation(string $relation, mixed $value) Set the specific relationship in the model. Parameters string $relation mixed $value Return Value $this

MorphPivot::setRawAttributes()

$this setRawAttributes(array $attributes, bool $sync = false) Set the array of model attributes. No checking is done. Parameters array $attributes bool $sync Return Value $this