src/Traits/ApiActionsChilds.php
public function childStore($idParent, FilterRequest $filters, $relation)
    {        
        $idParent = $this->getRealId($idParent);
        
        $resource = $this->repository->storeChild($idParent, $relation, $filters->all());
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
public function childStore($idParent, FilterRequest $filters, $relation)
    {        
        $idParent = $this->getRealId($idParent);
        
        $resource = $this->repository->storeChild($idParent, $relation, $filters->all());
        
        if (! $resource) {
            // return $this->notFound();
        }
        
        return $this->success($resource);
    }
Create a new child

@return \Illuminate\Http\Response