MorphToMany::initRelation()

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

MorphToMany::getTable()

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

MorphToMany::getResults()

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

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

MorphToMany::getRelationQuery()

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

MorphToMany::getRelationName()

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

MorphToMany::getRelationCountQuery()

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

MorphToMany::getRelationCountHash()

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

MorphToMany::getRelatedIds()

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

MorphToMany::getRelatedFreshUpdate()

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