/** * Resolve error for provided input. A small wrapper around model's functions * @param \GGS\Components\Model $model * @param $attribute * @return mixed */ public static function resolveInputErrorMessage(\GGS\Components\Model $model, $attribute) { if ($model->hasError($attribute)) { return $model->getError($attribute); } }