 
There are two types of pagination methods that are currently supported by default for the Query Builder results and the Eloquent ORM queries. They include:
 simplePaginate - only the Prev and Next buttons for navigating through the results
paginate -  Prev and Next buttons for navigating  with page numbers
Controller Example Method
Using the paginate() method:
public function index()
{
    $users= DB::table('users')->paginate(10);
    
    return view('user.index', ['invoices' => $invoices]);
}Using the simplePaginate() method:
public function index()
{
    $users= DB::table('users')->simplePaginate(10);
    
    return view('user.index', ['users' => $users]);
}Paginating Eloquent Results
Using the paginate() method:
use App\Models\User;                                                 public function index()
{
    $users= User::paginate(10);
    
    return view('user.index', ['users' => $users]);
}Using the simplePaginate() method:
use App\Models\User;     public function index()
{
    $users=User::paginate(10);
    
    return view('user.index', ['users' => $users]);
}Render the Pagination Results in the View
{{ $users->links() }}Customizing the Pagination HTML
php artisan vendor:publish --tag=laravel-paginationThis command will automatically create the folder /resources/views/vendor/pagination.
If you open it, you'll notice a few blade files.
you will need to inform the AppServiceProvider for this action by calling the new pagination views in the boot() method:
use Illuminate\Pagination\Paginator;
public function boot()
{
     Paginator::defaultView('vendor.pagination.bootstrap-4'); // pass yours pagnation view name 
    Paginator::defaultSimpleView('your-pagination-view-name'); // pass yours simple pagnation view name 
}We are Recommending you:
- Custom 404 Page In Laravel 8
- How to change timezone in laravel 8
- How to Secure Your Laravel App: Beyond SSL Basics
- Laravel's .htaccess to remove "public" from URL
- How to generate dynamic real time sitemap.xml file in Laravel 8
- Why Use the Repository Pattern in a Laravel Application
- Laravel Command List
- How to use soft delete in Laravel?
- Laravel 8 multi auth login
 
                  Master Your Time with the 80/20 Rule: A...
 
                  Get Control of Your Time: 6 Easy Ways...
 
                  India’s startup space is booming in 2025....
 
                  India breeds dreamers who build empires....
 
                  India’s startup space is booming in 2025....
 
                  In this tutorial, I would like to share with...
 
                  The 7 Habits of Highly Effective...
 
                  we provide custom social share links for...
 
                  Microservices help build big applications by...