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 model by its primary key or return new instance of the related model. Parameters mixed $id array $columns Return Value Collection|Model
array createMany(array $records) Create an array of new instances of the related model. Parameters array $records Return Value array
string createdAt() Get the name of the "created at" column. Return Value string
Model create(array $attributes) Create a new instance of the related model. Parameters array $attributes Return Value Model
void addEagerConstraints(array $models) Set the constraints for an eager load of the relation. Parameters array $models Return Value void
Page 601 of 996