src/Repositories/Repository.php
public function deleteChild($id, $relation, $idChild)
    {
        $parent = $this->model->find($id);
        
        if (! $parent) {
            return null;
        }
        
        $resource = $parent->$relation()->find($idChild);
        
        if (! $resource) {
            return null;
        }
        
        return $resource->delete();
    }
public function deleteChild($id, $relation, $idChild)
    {
        $parent = $this->model->find($id);
        
        if (! $parent) {
            return null;
        }
        
        $resource = $parent->$relation()->find($idChild);
        
        if (! $resource) {
            return null;
        }
        
        return $resource->delete();
    }
Delete Child

@return boolean;