😁Cách sử dụng AppServiceProvider để pagination bootstrap dễ nhất (ok)

https://www.positronx.io/laravel-pagination-example-with-bootstrap-tutorial/

app/Providers/AppServiceProvider.php

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Paginator::useBootstrap();
    }
}
{!! $employees->links() !!}

Last updated