Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #paginator #object #attribute #laravel
ADD COMMENT
Topic
Name
7+9 =