So I'm not sure, but I think you need to wrap your data in an array to actually make the pagination work. The thing is that it will add extra meta data for pagination and therefore it should be in it's own wrapper
// ClientCollection.php
public function toArray($request)
{
return [
'data' => parent::toArray($request),
];
}
You can enable withoutWrapping as well, but with pagination that doesn't work because you always have the extra meta data!
Let me know if this works for you!