new Collection()
Constructor
new Collection(array $data = [ ], bool $caseSensitive = false)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $data | array<string, TValue> |
[ ]
|
|
| $caseSensitive | bool |
false
|
Whether the collection keys should be treated as case-sensitive |