Example #1
0
 /**
  * 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]);
 }
Example #2
0
 /**
  * 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 . '.');
 }