public function fromInput(
        $resourceDefinition,
        ContextContract $context,
        $request = null
    ): ResourceCollection
    {
        $resourceDefinition = ResourceDefinitionLibrary::make($resourceDefinition);

        $resources = $context->getInputParser()->getResources(
            $this,
            $resourceDefinition,
            $context,
            $request
        );

        if (!$resources) {
            throw new \InvalidArgumentException("No data found in body");
        }

        return $resources;
    }
public function fromInput(
        $resourceDefinition,
        ContextContract $context,
        $request = null
    ): ResourceCollection
    {
        $resourceDefinition = ResourceDefinitionLibrary::make($resourceDefinition);

        $resources = $context->getInputParser()->getResources(
            $this,
            $resourceDefinition,
            $context,
            $request
        );

        if (!$resources) {
            throw new \InvalidArgumentException("No data found in body");
        }

        return $resources;
    }
public function fromInput ( $ resourceDefinition , ContextContract $ context , $ request = null ) : ResourceCollection { $ resourceDefinition = ResourceDefinitionLibrary :: make ( $ resourceDefinition ) ; $ resources = $ context -> getInputParser ( ) -> getResources ( $ this , $ resourceDefinition , $ context , $ request ) ; if ( ! $ resources ) { throw new \ InvalidArgumentException ( "No data found in body" ) ; } return $ resources ; }
Create resources from whatever is in the inputs defined from the input parsers.
@param $resourceDefinition
@param ContextContract $context
@param null $request
@return ResourceCollection
Create resources from whatever is in the inputs defined from the input parsers .