Indatus\Ranger\HttpRequestHandler\HttpDelete::handleRequest PHP Method

handleRequest() public method

handleRequest - this implementation, executes a deletion query on a single instance.
public handleRequest ( ) : mixed
return mixed json string | Illuminate\Routing\Redirector
    public function handleRequest()
    {
        try {
            $query_result = $this->queryExecuter->executeQuery('delete');
            $result = $this->responseHandler->success($query_result, self::NO_CONTENT);
            return $this->contentType->render($result);
        } catch (ModelNotFoundException $e) {
            $this->responseHandler->error($e->getMessage());
        }
    }
HttpDelete