Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collection collect

$collection = collect([
    ['product' => 'Desk', 'price' => 200],
    ['product' => 'Chair', 'price' => 100],
]);

$collection->contains('product', 'Bookcase');

// false
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #collection #collect
ADD COMMENT
Topic
Name
3+1 =