1$paginator = $this->items()->where('position', '=', null)->paginate(15);
2$paginator->getCollection()->transform(function ($value) {
3 // Your code here
4 return $value;
5});
1$paginator = tap($this->items()->where('position', '=', null)->paginate(15),function($paginatedInstance){
2 return $paginatedInstance->getCollection()->transform(function ($value) {
3 return $value;
4 });
5});