Just a donation of $5 will enable LBC to continue its successful development and improvement in the future. Did LBC help you with your project and give you $5 worth of time? Then please take a short moment and give something back. Thanks a lot!
In laravel is a pagination function already finished existing, if you use this, change the array's to laravel pagination objects: https://laravel.com/docs/5.8/pagination
For more information about pagination read the bootstrap documention Pagination