示例#1
0
 /**
  * Check if a setting exists by the key.
  *
  * @param  string  $key
  *
  * @return bool
  */
 public function has($key)
 {
     $this->checkLoaded();
     $domain = $this->grabDomain($key);
     if (!$this->data->has($domain)) {
         return false;
     }
     return Arr::has($this->data->get($domain), $key);
 }
示例#2
0
 /**
  * Check if the entry is saved.
  *
  * @param  string  $domain
  * @param  string  $key
  *
  * @return bool
  */
 private function isSaved($domain, $key)
 {
     return Arr::has($this->saved->get($domain, []), $key);
 }