Why is this code working? Didn't see it in docs #2749
-
I am working on an existing code and I didn't find any explanation about the way this code is written in the docs, so I wonder how it works and how the previous developer came up with this :
This is how the table is being called in the controller:
and in the blade view it's just:
Oh and in the
Things I didn't understand for example:
This data table is in my Laravel's project DataTables folder. Does this implementation look correct? Or there are some stuff that I should change? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should use the dataTables render function to be able to handle multiple actions/request: $dataTable->render('view.path')
You can use an array or the fluent Column class builder. The fluent builder is not fully documented but it's similar to array version but instead of keys, use the counter part method.
You should only use render method. |
Beta Was this translation helpful? Give feedback.
You should use the dataTables render function to be able to handle multiple actions/request:
You can u…