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

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

BelongsToMany::getTable()

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

BelongsToMany::getRelationName()

string getRelationName() Get the relationship name for the relationship. Return Value string

BelongsToMany::getRelationCountHash()

string getRelationCountHash() Get a relationship join table hash. Return Value string

BelongsToMany::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Add the constraints for a relationship count query. Parameters Builder $query Builder $parent Return Value Builder

BelongsToMany::getRelatedIds()

Collection getRelatedIds() Get all of the IDs for the related models. Return Value Collection

BelongsToMany::getRelatedFreshUpdate()

string getRelatedFreshUpdate() Get the related model's updated at column name. Return Value string

BelongsToMany::getQuery()

Builder getQuery() Get the underlying query for the relation. Return Value Builder

BelongsToMany::getRelated()

Model getRelated() Get the related model of the relation. Return Value Model