Laravel 5 – Manual pagination
You need to add use: use Illuminate\Pagination\LengthAwarePaginator as Paginator; and now you can use: $paginator = new Paginator($items, $count, $limit, $page, [ ‘path’ => $this->request->url(), ‘query’ => $this->request->query(), ]); to get data in the same format as paginating on model object;