Level 73
Have you tried putting paginate at the end:
$adresses = Adresses::where('active', 1)->where('user_id',Auth::user()->id)->paginate(10);
I have a list that I want to display with pagination, when I use the script below I get the error that links do not exist. Without the where conditions it works what am I doing wrong
$adresses = Adresses::paginate(10) ->where('active', 1) ->where('user_id',Auth::user()->id); return view('adresses.home', compact('adresses'));
Please or to participate in this conversation.