-
Hi. I use a data table inside a view which is rendered when visiting an URL like this: http://127.0.0.1:8000/events/106. I want to get the data of single "event". I passed the data from controller to view and passed it again to the livewire datatable view. I'm struggling to get passed data inside datatable class or any other way to write a query to get the needed data, like accessing the "106" in this case. TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can use the builder() approach within your table component. Please share the content of your table component and I'll try to advise |
Beta Was this translation helpful? Give feedback.
What's your plan here, do you want to pass it to a view, use it to do something else, or what?
Is it as simple as, a parent controller/component is receiving the https://127.0.0.1:8000/events/106 request.
You are then passing the 106 (eventID?) to the table and you want to restrict the query to those relating to the eventID?