This is mine
$art = Article::where(\'id\',$article)->firstOrFail();
$products = $art->products;
I just wanna take a limit \'p
You can use skip and take functions as below:
$products = $art->products->skip($offset*$limit)->take($limit)->get();
// skip should be passed param as integer value to skip the records and starting index
// take gets an integer value to get the no. of records after starting index defined by skip
EDIT
Sorry. I was misunderstood with your question. If you want something like pagination the forPage method will work for you. forPage method works for collections.
REf : https://laravel.com/docs/5.1/collections#method-forpage
e.g
$products = $art->products->forPage($page,$limit);