src/Http/Middleware/ParsesServerRequests.php
protected function isExpectingDocument(InboundRequestInterface $request)
    {
        return $request->isCreateResource() ||
            $request->isUpdateResource() ||
            $request->isReplaceRelationship() ||
            $request->isAddToRelationship() ||
            $request->isRemoveFromRelationship();
    }
protected function isExpectingDocument(InboundRequestInterface $request)
    {
        return $request->isCreateResource() ||
            $request->isUpdateResource() ||
            $request->isReplaceRelationship() ||
            $request->isAddToRelationship() ||
            $request->isRemoveFromRelationship();
    }
protected function isExpectingDocument ( InboundRequestInterface $ request ) { return $ request -> isCreateResource ( ) || $ request -> isUpdateResource ( ) || $ request -> isReplaceRelationship ( ) || $ request -> isAddToRelationship ( ) || $ request -> isRemoveFromRelationship ( ) ; }
Is a document expected for the supplied request?

If the JSON API request is any of the following, a JSON API document
is expected to be set on the request:

- Create resource
- Update resource
- Replace resource relationship
- Add to resource relationship
- Remove from resource relationship

@param InboundRequestInterface $request
@return bool
Is a document expected for the supplied request?