Question : access paginator object attribute in laravel
Answered by : frail-fly-hdtibtm5fxsv
$paginator = $this->items()->where('position', '=', null)->paginate(15);
$paginator->getCollection()->transform(function ($value) { // Your code here return $value;
});
Source : https://stackoverflow.com/questions/37102841/laravel-change-pagination-data | Last Update : Sun, 13 Sep 20
Question : access paginator object attribute in laravel
Answered by : frail-fly-hdtibtm5fxsv
$paginator = tap($this->items()->where('position', '=', null)->paginate(15),function($paginatedInstance){ return $paginatedInstance->getCollection()->transform(function ($value) { return $value; });
});
Source : https://stackoverflow.com/questions/37102841/laravel-change-pagination-data | Last Update : Sun, 13 Sep 20