laravel get result in pagnation

Solutions on MaxInterview for laravel get result in pagnation by the best coders in the world

showing results for - "laravel get result in pagnation"
Elías
19 Feb 2018
1In Controller
2
3$subSections = Subsection::with('mainsection')->paginate(2);
4
5In Blade
6
7{{ $subSections->links() }}
8
9Or 
10{{ $subSections->appends(request()->except('page'))->links() }}
11
12For designing the pagination 
13https://laravel.com/docs/8.x/pagination
14
15Follow me at www.makeyourownproject.com