Link:  https://www.itsolutionstuff.com/post/laravel-6-paginate-with-collection-or-arrayexample.html

In this tutorial, we will create a custom collection object with arrays and create pagination using Laravel eloquent.

laravel custom array