This is mine
$art = Article::where(\'id\',$article)->firstOrFail(); $products = $art->products;
I just wanna take a limit \'p
laravel have own function skip for offset and take for limit. just like below example of laravel query :-
skip
offset
take
limit
Article::where([['user_id','=',auth()->user()->id]]) ->where([['title','LIKE',"%".$text_val."%"]]) ->orderBy('id','DESC') ->skip(0) ->take(2) ->get();