$product = Product::all();
This is to investigate and deal with all products
I want to output 50 pieces of data on the html page first;
When the user pulls down, go to ajax to query the subsequent data
html page data, how to query the first 50 data
And there are conditions. The product must be on the shelves
Paging
$product = Product::paginate(50);
passed to blade through viewPass variables $pos, $limit when pulling down to refresh
$product = Product::where([])->skip($pos)->take($limit)->get();