$products = Product::where('id', '>', 20)->select('id')->paginate(10);
/* Now i need to replace each item in data with new one
after adding some custom fields */
i mean the following :
suppose i need to return an unified form for the product
like with some other relationships
so my idea was create a function with an id as parameter
and return the desired form of the given id from product table.
so by using pagination i need just IDs from and for each one
i will invoke the previous function to return my form.