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
static mixed noConstraints(Closure $callback) Run a callback with constraints disabled on the relation. Parameters Closure $callback Return Value mixed
Builder newPivotStatementForId(mixed $id) Get a new pivot statement for a given "other" ID. Parameters mixed $id Return Value Builder
Builder newPivotStatement() Get a new plain query builder for the pivot table. Return Value Builder
Pivot newPivot(array $attributes = array(), bool $exists = false) Create a new pivot model instance. Parameters array $attributes bool $exists Return Value Pivot
Pivot newExistingPivot(array $attributes = array()) Create a new existing pivot model instance. Parameters array $attributes Return Value Pivot
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
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
array initRelation(array $models, string $relation) Initialize the relation on a set of models. Parameters array $models string $relation Return Value array
string getTable() Get the intermediate table for the relationship. Return Value string
Page 929 of 996