Laravel Collection Public API: forPage
forPage($page, $perPage) The forPage method is used to implement pagination over collections. The forPage defines two parameters: $page , which is used to tell the collection which "page" should be returned and $perPage , which is used to control...