Exemple #1
0
 /**
  * Determine if the given configuration value exists.
  *
  * @param string $key
  *
  * @return bool
  */
 public function has($key)
 {
     return Arr::has($this->items, $key);
 }
Exemple #2
0
 /**
  * Determine if the request contains a given input item key.
  *
  * @param string|array $key
  *
  * @return bool
  */
 public function exists($key)
 {
     $keys = is_array($key) ? $key : func_get_args();
     $input = $this->all();
     foreach ($keys as $value) {
         if (!Arr::has($input, $value)) {
             return false;
         }
     }
     return true;
 }