Model findOrNew(mixed $id, array $columns = array('*')) Find a model by its primary key or return fresh model instance. Parameters mixed $id array $columns Return Value Model
Model|Builder|null first(array $columns = array('*')) Execute the query and get the first result. Parameters array $columns Return Value Model|Builder|null
Model|Collection findOrFail(mixed $id, array $columns = array('*')) Find a model by its primary key or throw an exception. Parameters mixed $id array $columns Return Value Model|Collection Exceptions ModelNotFoundException
mixed|Builder find(int $id, array $columns = array('*')) Execute a query for a single record by ID. Parameters int $id array $columns Return Value mixed|Builder
Collection findMany(array $ids, array $columns = array('*')) Find multiple models by their primary keys. Parameters array $ids array $columns Return Value Collection
Model|Collection|Builder[]|Builder|null find(mixed $id, array $columns = array('*')) Find a model by its primary key. Parameters mixed $id array $columns Return Value Model|Collection|Builder[]|Builder|null
array eagerLoadRelations(array $models) Eager load the relationships for the models. Parameters array $models Return Value array
bool each(callable $callback, int $count = 1000) Execute a callback over each item while chunking. Parameters callable $callback int $count Return Value bool Exceptions RuntimeException
bool enableForeignKeyConstraints() Enable foreign key constraints. Return Value bool
bool exists() Determine if any rows exist for the current query. Return Value bool
Page 904 of 996