string getHasCompareKey() Get the key for comparing against the parent key in "has" query. Return Value string
Model getParent() Get the parent model of the relation. Return Value Model
string getQualifiedParentKeyName() Get the fully qualified parent key name. Return Value string
string getOtherKey() Get the fully qualified "other key" for the relation. Return Value string
Builder getBaseQuery() Get the base query builder driving the Eloquent builder. Return Value Builder
Collection getEager() Get the relationship for eager loading. Return Value Collection
string getForeignKey() Get the fully qualified foreign key for the relation. Return Value string
Model|BelongsToMany firstOrFail(array $columns = array('*')) Execute the query and get the first result or throw an exception. Parameters array $columns Return Value Model|BelongsToMany Exceptions ModelNotFoundException
Collection get(array $columns = array('*')) Execute the query as a "select" statement. Parameters array $columns Return Value Collection
Model firstOrNew(array $attributes) Get the first related model record matching the attributes or instantiate it. Parameters array $attributes Return Value Model
Page 931 of 996