array_slice

$page = $request->input('page');
$limit = $request->input('limit');
$offset = ($page-1) * $limit;

$data = new LengthAwarePaginator(array_slice($data, $offset, $limit, true), count($data), $limit, $page, ['path' => $request->url(), 'query' => $request->query()]);