laravel pagination by total pages code example Example: laravel pagination {{ $users->withQueryString()->links() }}