Answers for "access paginator object attribute in laravel"

PHP
0

access paginator object attribute in laravel

$paginator = $this->items()->where('position', '=', null)->paginate(15);
$paginator->getCollection()->transform(function ($value) {
    // Your code here
    return $value;
});
Posted by: Guest on September-06-2020
0

access paginator object attribute in laravel

$paginator = tap($this->items()->where('position', '=', null)->paginate(15),function($paginatedInstance){
    return $paginatedInstance->getCollection()->transform(function ($value) {
        return $value;
    });
});
Posted by: Guest on September-06-2020

Code answers related to "access paginator object attribute in laravel"

Browse Popular Code Answers by Language