-
-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ability to pass an array of needed columns and get only them in response, to not add or remove them one by one #1860
Conversation
Changed the name of the function `selectOnlyRequiredColumns()` to `selectOnlyNeededColumns()`
The idea looks fine. Can you please remove the new line on doc blocks. Thanks! |
CS fixes
Thanks for approving the idea. I have removed the new lines in doc blocks |
Added exceptions for 'DT_RowId', 'DT_RowClass', 'DT_RowData', 'DT_RowAttr'
Hi, are there any updates? I really need this. Thank you |
Thanks for the updates, will try to review later this evening. |
Released on v8.9.0 🚀 thanks! |
BTW, if you can, please submit also a PR on docs and a tests if possible. 🍻 |
Thank you for update, I will create docs and tests PR |
Example
DataTables::of($items)->only(['id', 'name'])->make(true)