public static function has(string $key) : bool
  {
    $expect = explode('.', $key);
    $config = Config::all();

    foreach($expect as $setting) {
      if (!isset($config[$setting])) return false;
      $config = $config[$setting];
    }

    return true;
  }
public static function has(string $key) : bool
  {
    $expect = explode('.', $key);
    $config = Config::all();

    foreach($expect as $setting) {
      if (!isset($config[$setting])) return false;
      $config = $config[$setting];
    }

    return true;
  }
public static function has ( string $ key ) : bool { $ expect = explode ( '.' , $ key ) ; $ config = Config :: all ( ) ; foreach ( $ expect as $ setting ) { if ( ! isset ( $ config [ $ setting ] ) ) return false ; $ config = $ config [ $ setting ] ; } return true ; }
Check if setting exists

@param string $key
@return bool
Check if setting exists