Paginate the given query into a simple paginator.
public paginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
$perPage | integer | |
$columns | array | |
$pageName | string | |
$page | integer | null | |
return | Illuminate\Contracts\Pagination\LengthAwarePaginator |