Customize pagination generated by links()

Override the template of pagination in following path:

  1. Copy template file to view folder
    From:
    /vendor/laravel/framework/src/Illuminate/Pagination/resources/views/bootstrap-4.blade.php
    To:
    /resources/views/partials
  2. Revise template in view
  3. Add this view in links() param:

Reference:

  1. https://mattstauffer.com/blog/customizing-pagination-templates-in-laravel-5-3/
  2. https://stackoverflow.com/questions/28240777/custom-pagination-view-in-laravel-5