src/NilPortugues/Laravel5/JsonApi/Controller/JsonApiTrait.php
protected function listResourceCallable()
    {
        return function () {
            return EloquentHelper::paginate($this->serializer, $this->getDataModel()->query(), $this->pageSize)->get();
        };
    }
protected function listResourceCallable()
    {
        return function () {
            return EloquentHelper::paginate($this->serializer, $this->getDataModel()->query(), $this->pageSize)->get();
        };
    }
protected function listResourceCallable ( ) { return function ( ) { return EloquentHelper :: paginate ( $ this -> serializer , $ this -> getDataModel ( ) -> query ( ) , $ this -> pageSize ) -> get ( ) ; } ; }
Returns a list of resources based on pagination criteria.

@return callable
@codeCoverageIgnore
Returns a list of resources based on pagination criteria .