Model getParent() Get the parent model of the relation. Return Value Model
string getMorphType() Get the foreign key "type" name. Return Value string
string getMorphClass() Get the class name of the parent model. Return Value string
string getHasCompareKey() Get the key for comparing against the parent key in "has" query. Return Value string
string getForeignKey() Get the foreign key for the relationship. Return Value string
Collection getEager() Get the relationship for eager loading. Return Value Collection
Builder getBaseQuery() Get the base query builder driving the Eloquent builder. Return Value Builder
Model firstOrNew(array $attributes) Get the first related model record matching the attributes or instantiate it. Parameters array $attributes Return Value Model
Model firstOrCreate(array $attributes) Get the first related record matching the attributes or create it. Parameters array $attributes Return Value Model
Collection|Model findOrNew(mixed $id, array $columns = array('*')) Find a related model by its primary key or return new instance of the related model. Parameters mixed $id array $columns Return Value Collection|Model
Page 443 of 996