Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

access paginator object attribute in laravel

$paginator = $this->items()->where('position', '=', null)->paginate(15);
$paginator->getCollection()->transform(function ($value) {
    // Your code here
    return $value;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #paginator #object #attribute #laravel
ADD COMMENT
Topic
Name
9+1 =