src/Traits/ApiActionsChilds.php
public function deleteChild($idParent, FilterRequest $filters, $idChild, $relation)
    {
        $idParent = $this->getRealId($idParent);
        $idChild = $this->getRealId($idChild);
        
        $resource = $this->repository->deleteChild($idParent, $relation, $idChild);
        
        if ($resource == null) {
            // return $this->notFound();
        }
        
        return $this->success();
    }
public function deleteChild($idParent, FilterRequest $filters, $idChild, $relation)
    {
        $idParent = $this->getRealId($idParent);
        $idChild = $this->getRealId($idChild);
        
        $resource = $this->repository->deleteChild($idParent, $relation, $idChild);
        
        if ($resource == null) {
            // return $this->notFound();
        }
        
        return $this->success();
    }
public function deleteChild ( $ idParent , FilterRequest $ filters , $ idChild , $ relation ) { $ idParent = $ this -> getRealId ( $ idParent ) ; $ idChild = $ this -> getRealId ( $ idChild ) ; $ resource = $ this -> repository -> deleteChild ( $ idParent , $ relation , $ idChild ) ; if ( $ resource == null ) { // return $this->notFound(); } return $ this -> success ( ) ; }
Delete a child

@return \Illuminate\Http\Response
Delete a child