Implementation of the result iterable that returns query results as instances of the defined model.
The model that should be instantiated for each row.
The builder whose results should be iterated
The connection on which to execute the builder.
The current index of the iterable.
Get the SQL string for the SELECT query for this iterable.
Return all items resulting from this query.
Get the result at index i.
Chunk the iterable into the given size and call the callback passing the chunk along.
Create a new iterable based on this query.
Count the number of results of the query.
Get the container for this instance.
Given a query row, create an instance of the configured model class from it.
Instantiate a new injectable using the container.
Advance to the next value of this iterable.
Peek at the next value of the iterable, without advancing.
Eager-load eager-loaded relations for the models in the query result.
Get the results starting at index
start and ending at index
Reset the iterable to the first index.
Advance the iterable to the given index.