1
0

Enab;e use of dot notation

This commit is contained in:
Richard Dern 2024-04-18 01:52:09 +02:00
parent 70cba29d45
commit fd9fdc51f1

View File

@ -100,13 +100,13 @@ protected function writeToDisk(array $data)
*/ */
public function set($key, $value) public function set($key, $value)
{ {
$this->content->put($key, $value); $this->setMany(collect([$key => $value])->undot());
} }
/** /**
* Sets multiple metadata at once. * Sets multiple metadata at once.
*/ */
public function setMany(array $array) public function setMany($array)
{ {
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
$this->content->put($key, $value); $this->content->put($key, $value);