diff --git a/app/Classes/MetadataManager.php b/app/Classes/MetadataManager.php index abf8189..2ab28f4 100644 --- a/app/Classes/MetadataManager.php +++ b/app/Classes/MetadataManager.php @@ -100,13 +100,13 @@ protected function writeToDisk(array $data) */ public function set($key, $value) { - $this->content->put($key, $value); + $this->setMany(collect([$key => $value])->undot()); } /** * Sets multiple metadata at once. */ - public function setMany(array $array) + public function setMany($array) { foreach ($array as $key => $value) { $this->content->put($key, $value);