HasManyThrough::rawUpdate()

int rawUpdate(array $attributes = array()) Run a raw update against the base query. Parameters array $attributes Return Value int

HasManyThrough::parentSoftDeletes()

bool parentSoftDeletes() Determine whether close parent of the relation uses Soft Deletes. Return Value bool

HasManyThrough::paginate()

LengthAwarePaginator paginate(int $perPage = null, array $columns = array('*'), string $pageName = 'page', int $page = null) Get a paginator for the "select" statement. Parameters int $perPage array $columns string $pageName int $page Return Value LengthAwarePaginator

HasManyThrough::noConstraints()

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

HasManyThrough::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

HasManyThrough::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

HasManyThrough::initRelation()

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

HasManyThrough::getThroughKey()

string getThroughKey() Get the qualified foreign key on the "through" model. Return Value string

HasManyThrough::getResults()

mixed getResults() Get the results of the relationship. Return Value mixed

HasManyThrough::getRelationQuery()

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