BelongsToMany::newPivotStatementForId()

Builder newPivotStatementForId(mixed $id) Get a new pivot statement for a given "other" ID. Parameters mixed $id Return Value Builder

BelongsToMany::orWherePivot()

BelongsToMany orWherePivot(string $column, string $operator = null, mixed $value = null) Set an "or where" clause for a pivot table column. Parameters string $column string $operator mixed $value Return Value BelongsToMany

BelongsToMany::orWherePivotIn()

BelongsToMany orWherePivotIn(string $column, mixed $values) Set an "or where in" clause for a pivot table column. Parameters string $column mixed $values Return Value BelongsToMany

BelongsToMany::newPivot()

Pivot newPivot(array $attributes = array(), bool $exists = false) Create a new pivot model instance. Parameters array $attributes bool $exists Return Value Pivot

BelongsToMany::morphMap()

static array morphMap(array $map = null, bool $merge = true) Set or get the morph map for polymorphic relations. Parameters array $map bool $merge Return Value array

BelongsToMany::newPivotStatement()

Builder newPivotStatement() Get a new plain query builder for the pivot table. Return Value Builder

BelongsToMany::newExistingPivot()

Pivot newExistingPivot(array $attributes = array()) Create a new existing pivot model instance. Parameters array $attributes Return Value Pivot

BelongsToMany::initRelation()

array initRelation(array $models, string $relation) Initialize the relation on a set of models. Parameters array $models string $relation Return Value array

BelongsToMany::match()

array match(array $models, Collection $results, string $relation) Match the eagerly loaded results to their parents. Parameters array $models Collection $results string $relation Return Value array

BelongsToMany::getRelationQueryForSelfJoin()

Builder getRelationQueryForSelfJoin(Builder $query, Builder $parent, array|mixed $columns = array('*')) Add the constraints for a relationship query on the same table. Parameters Builder $query Builder $parent array|mixed $columns Return Value Builder