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

@return \Illuminate\Http\Response
Update a child