Hi people.
I saw the subject a lot of times but it didn"t satisfied me, so I'm asking here.
I need to do a multiple pagination on a page. In this page I have two lists and need to have my pagination on each lists.
Actually I did this in the controller :
public function getDev(){
$devs = Developpement::where('id_categorie', 1)->paginate(1, ['*'], 'dev');
$templates = Developpement::where('id_categorie', 2)->paginate(1, ['*'], 'template');
return view('main.developpement', compact('devs', 'templates'));
}
And my view just have the {{ $templates->links() }} and {{ $devs->links() }}
Actually the result is that I when I click on my first pagination, everything is correct and the second is fine too. But when I click on the second, It reset the first. The URL stay like :
http://localhost:8888/tloading/developpement?template=2
I'd like to have an URL like http://localhost:8888/tloading/developpement?template=2&devs=2
How could I do this ?
Thank You !