minwork/array
Minwork Array provides fast, well-tested helpers for nested, associative, and object arrays. Get/set/has plus map, filter, find, group, sort, and validation, with fluent-style chaining. No dependencies; modern PHP syntax.
Arr::hasKeys(array $array, mixed $keys, bool $strict = false): bool
Check if array has specified keys ( all required, when $strict is true).
$array = ['key1' => 1, 'key2' => 2, 'key3' => 3];
Arr::hasKeys($array, ['key2', 'key3']) -> true
Arr::hasKeys($array, 'key1.key2') -> true
Arr::hasKeys($array, ['test', 'key1']) -> true
Arr::hasKeys($array, ['test', 'key1'], true) -> false
Arr::hasKeys($array, 'test') -> false
How can I help you explore Laravel packages today?