トップに戻る
tags
$collection = collect(); $collection_hash = [ 'id' => 1 , 'name' => 'テスト太郎' , ]; // Collectionになければ追加 if ( ! $collection->contains( $collection_hash ) ){ $collection->push( $collection_hash ); }
composer require tightenco/collect
edit