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

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

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

Model firstOrCreate(array $attributes, array $joining = array()

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

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

2025-01-10 15:47:30
HasManyThrough
  • References/PHP/Laravel/Database/Eloquent/Relations

HasManyThrough class HasManyThrough extends

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

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

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

Collection only(mixed $keys)

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

bool chunk(int $count, callable $callback) Chunk the results of the query

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

void addObservableEvents(array|mixed $observables) Add an observable event

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

void addEagerConstraints(array $models) Set the constraints for an eager

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

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

2025-01-10 15:47:30