Skip to content

Commit 0a8e8f4

Browse files
author
Jordan Hall
authored
Change wording and example use cases for collectionManipulator.
1 parent 7e6c66d commit 0a8e8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ composer require langleyfoxall/react-dynamic-data-table-laravel-api
1414

1515
First, create a new route in your API routes file for the data table response, and point it to a controller.
1616

17-
In this controller method, create a new `DataTableResponder` passing it the model you wish to return data about, and the provided instance of the `Request` object. You can optionally specify changes to the query (such as sorting, or filtering) using the `query` method. If you want to alter the data before it gets return, such as loading relationships or appending custom attributes you can take advantage of `collectionManipulator`. You can also change number of records shown per page with the `setPerPage` method.
17+
In this controller method, create a new `DataTableResponder` passing it the model you wish to return data about, and the provided instance of the `Request` object. You can optionally specify changes to the query (such as sorting, or filtering) using the `query` method. If you want to alter the data before it gets returned in some way, such as changing attribute values or appending custom attributes, you can take advantage of `collectionManipulator`. You can also change number of records shown per page with the `setPerPage` method.
1818

1919
See the example usage below.
2020

0 commit comments

Comments
 (0)