Skip to content

Commit

Permalink
Convert nested options to dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBernskiold committed Aug 30, 2024
1 parent a29ff65 commit 7d942dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Concerns/HasOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public function set(string $key, mixed $value): self

public function setMany(array $options = []): self
{
$options = Arr::dot($options);

foreach ($options as $key => $value) {
$this->set($key, $value);
}
Expand Down

0 comments on commit 7d942dc

Please sign in to comment.