Pivot::observe()
  • References/PHP/Laravel/Database/Eloquent/Relations

static void observe(object|string $class, int $priority) Register

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

bool push() Save the model and all of its relationships.

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

bool isDirty(array|string|null $attributes = null) Determine if the model

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

$this fill(array $attributes) Fill the model with an array of attributes

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

bool save(array $options = array()) Save the model to the database.

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

$this setPivotKeys(string $foreignKey, string $otherKey) Set the key names

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

BelongsTo belongsTo(string $related

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

$this setObservableEvents(array $observables) Set the observable event

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

$this setIncrementing(bool $value) Set whether IDs are incrementing.

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

string getKeyName() Get the primary key for the model.

2025-01-10 15:47:30