src/Http/Controllers/UserController.php
public function list(QueryBuilderRequest $request)
    {
        $object = QueryBuilder::for($this->resource, $request)->paginate();

        return $this->response->collection($object);
    }
public function list(QueryBuilderRequest $request)
    {
        $object = QueryBuilder::for($this->resource, $request)->paginate();

        return $this->response->collection($object);
    }
List

@param QueryBuilderRequest $request
@return AnonymousResourceCollection|UserResource[]