GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Previous: Scopes -
Simple pagination works with the paginate method, where we need to specify the page number and the limit by page, like
$page = 1;
$tickets = $user->tickets->paginate($page,5);