Step 1: Use paginate in controller
public function index()
{
return view('user.index', [
'users' => DB::table('users')->paginate(15)
]);
}
Step 2: Use link in below table view page.
onEachSide use to how many paginate page number show beside current page in pagination.
{{ $users->onEachSide(1)->links() }}
What’s your Reaction?
+1
+1
+1
+1
+1
+1
+1