Exemple #1
0
 /**
  * {@inheritdoc}
  */
 protected function read()
 {
     $results = [];
     foreach ($this->model()->get() as $setting) {
         /** @var Setting $setting */
         Arr::set($results, $setting->key, $setting->value);
     }
     return $results;
 }
Exemple #2
0
 /**
  * Unset a key in the settings data.
  *
  * @param  string  $key
  */
 public function forget($key)
 {
     $this->unsaved = true;
     if ($this->has($key)) {
         Arr::forget($this->data, $key);
     }
 }