/** * Determine if the given configuration value exists. * * @param string $key * @return bool */ public function has($key) { if (empty($this->data[$key])) { return false; } return !Arr::allEmpty($this->data[$key]); }
/** * Get raw database field names prefixed (id, name becomes t.id, t.name etc.). * * @param string $dbTableAlias * @param array $exclude * @return array */ public static function getPrefixedDbFieldNames($dbTableAlias, array $exclude = []) { return Arr::valuesWithPrefix(static::getDbFieldNames($exclude), $dbTableAlias . '.'); }