php - How to paginate the laravel collection using relationships?

I am using laravel 7 and in my controller I want to paginate data, here is my code
$offers = Auth::user()->products()->paginate(1)->with('offers')->get()->pluck('offers')->flatten();
The question is, how can i use
$offers->links()
in my blade.
Thanks in advance
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: the browser (or proxy) sent a request that this server could not understand.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.