src/Traits/ApiActionsChilds.php
public function childIndex(FilterRequest $filters, $id, $relation)
    {
        $id = $this->getRealId($id);
        
        $resource = $this->repository->getChilds($id, $relation, $filters);
        
        if (! $resource || count($resource) < 1) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
public function childIndex(FilterRequest $filters, $id, $relation)
    {
        $id = $this->getRealId($id);
        
        $resource = $this->repository->getChilds($id, $relation, $filters);
        
        if (! $resource || count($resource) < 1) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
Display a listing of the childs resource.

@return \Illuminate\Http\Response