MorphPivot::setMorphType()
  • References/PHP/Laravel/Database/Eloquent/Relations

$this setMorphType(string $morphType) Set the morph type for the pivot

2025-01-10 15:47:30
MorphPivot::syncOriginal()
  • References/PHP/Laravel/Database/Eloquent/Relations

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

2025-01-10 15:47:30
SoftDeletes::trashed()
  • References/PHP/Laravel/Database/Eloquent

bool trashed() Determine if the model instance has been soft-deleted.

2025-01-10 15:47:30
Pivot::hasCast()
  • References/PHP/Laravel/Database/Eloquent/Relations

bool hasCast(string $key, array|string|null $types = null) Determine whether

2025-01-10 15:47:30
Model::getObservableEvents()
  • References/PHP/Laravel/Database/Eloquent

array getObservableEvents() Get the observable event names.

2025-01-10 15:47:30
Pivot::setConnection()
  • References/PHP/Laravel/Database/Eloquent/Relations

$this setConnection(string $name) Set the connection associated with the

2025-01-10 15:47:30
Model::resolveConnection()
  • References/PHP/Laravel/Database/Eloquent

static Connection resolveConnection(string|null $connection

2025-01-10 15:47:30
MorphPivot::touches()
  • References/PHP/Laravel/Database/Eloquent/Relations

bool touches(string $relation) Determine if the model touches a given relation

2025-01-10 15:47:30
Pivot::totallyGuarded()
  • References/PHP/Laravel/Database/Eloquent/Relations

bool totallyGuarded() Determine if the model is totally guarded.

2025-01-10 15:47:30
Pivot::getDirty()
  • References/PHP/Laravel/Database/Eloquent/Relations

array getDirty() Get the attributes that have been changed since last sync

2025-01-10 15:47:30