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

array relationsToArray() Get the model's relationships in array form.

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

string toJson(int $options) Convert the model instance to JSON.

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

mixed getRouteKey() Get the value of the model's route key.

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

static Collection hydrate(array $items

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

static void saved(Closure|string $callback, int $priority)

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

MorphMany morphMany(string $related

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

$this setDateFormat(string $format) Set the date format used by the model

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

$this setAttribute(string $key, mixed $value) Set a given attribute on

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

$this makeHidden(array|string $attributes) Make the given, typically visible

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

string getForeignKey() Get the foreign key column name.

2025-01-10 15:47:30