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;