Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixing a bug with the readme example as respondWithPaginatedCollection requires a builder to be passed in.
  • Loading branch information
joshforbes committed Feb 8, 2017
1 parent 0ca6234 commit cc1be97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class BookController extends ApiController
$books = $this->eagerLoadIncludes($this->bookModel, $includes);
$books = $this->applyParameters($books, $request->query);

return $this->respondWithPaginatedCollection($books->get(), $this->transformer);
return $this->respondWithPaginatedCollection($books, $this->transformer);
}

/**
Expand Down

0 comments on commit cc1be97

Please sign in to comment.