/** * {@inheritdoc} */ protected function read() { $results = []; foreach ($this->model()->get() as $setting) { /** @var Setting $setting */ Arr::set($results, $setting->key, $setting->value); } return $results; }
/** * 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); } }