protected function outputList($models, array $parameters = [], $resourceDefinition = null)
    {
        $resources = $this->filteredModelsToResources($models, $parameters, $resourceDefinition);
        return $this->toResponse($resources);
    }
protected function outputList($models, array $parameters = [], $resourceDefinition = null)
    {
        $resources = $this->filteredModelsToResources($models, $parameters, $resourceDefinition);
        return $this->toResponse($resources);
    }
protected function outputList ( $ models , array $ parameters = [ ] , $ resourceDefinition = null ) { $ resources = $ this -> filteredModelsToResources ( $ models , $ parameters , $ resourceDefinition ) ; return $ this -> toResponse ( $ resources ) ; }
Output a resource or a collection of resources

@param $models
@param array $parameters
@param null $resourceDefinition
@return \Illuminate\Http\JsonResponse
Output a resource or a collection of resources