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::noConstraints()

static mixed noConstraints(Closure $callback) Run a callback with constraints disabled on the relation. Parameters Closure $callback Return Value mixed

BelongsToMany::newPivotStatementForId()

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

BelongsToMany::newPivotStatement()

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

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::newExistingPivot()

Pivot newExistingPivot(array $attributes = array()) Create a new existing pivot model instance. Parameters array $attributes 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::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::initRelation()

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

BelongsToMany::getTable()

string getTable() Get the intermediate table for the relationship. Return Value string