4

I have added pagination in controller and included in view page.

$query=$query->pagination(10);
   return view('layouts.home',['users'=>$query]); 
    {{$users->links()}}

This pagination shows as << 1 2 >>

I want to change << to < and >> to >. How can I change the arrow in laravel 5.3

user3386779
  • 6,883
  • 20
  • 66
  • 134
  • Possible duplicate of [Custom pagination view in Laravel 5](https://stackoverflow.com/questions/28240777/custom-pagination-view-in-laravel-5) – GONG Jul 16 '18 at 04:53
  • Get the URL by these function and setup with your own formatting: https://laravel.com/docs/5.3/pagination#paginator-instance-methods – DsRaj Jul 16 '18 at 04:55

1 Answers1

6

Run the following command:

php artisan vendor:publish --tag=laravel-pagination

This will generate the pagination view files that are used to display the pagination. You can then edit them.

This command will place the views in the resources/views/vendor/pagination directory. The bootstrap-4.blade.php file within this directory corresponds to the default pagination view. You may edit this file to modify the pagination HTML.

Polaris
  • 1,219
  • 8
  • 14