Hello,
How can I make a filter related to the Datatable Class before rendering into the view based on the related tables id/foreign key that has been chosen that I can specify in my Controller class? Kindly help. Thnak you in advance.
for example here is my related tables that I am trying to show in my ParentsController.
/**
- @param Child $child
- @param ChildsDataTable $dataTable
- @return Child
*/
public function show_childs(Parent $parent, Child $child, ChildsDataTable $dataTable)
{
$child = $parent->childs;
$dataTable->render('Resource::child.index');
}
Hello,
This is not a best practise way to show HasMany relations, we recommend you to check the slider module and see how slides are showing for a specific Slider
Hi,
All I can say is thank you very much… My personal project will now push through. I already checked what you shared. Thank you! 😀
🙂
All working as it should be now. The best! thumbs up. very happy, can sleep well now. 🙂
Please login or Register to submit your answer