Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collection pipe

$collection = collect([1, 2, 3]);

$piped = $collection->pipe(function ($collection) {
    return $collection->sum();
});

// 6
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #collection #pipe
ADD COMMENT
Topic
Name
9+6 =