Enab;e use of dot notation
This commit is contained in:
parent
70cba29d45
commit
fd9fdc51f1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user