select group placeholder made dynamic

This commit is contained in:
Cihan Şentürk
2022-06-10 18:59:17 +03:00
committed by GitHub
parent 5890a99bf9
commit 12d3a926d0
3 changed files with 6 additions and 10 deletions

View File

@ -215,6 +215,10 @@ abstract class Form extends Component
$label = $this->name;
}
if ($this->type == 'select') {
return trans('general.form.select.field', ['field' => $label]);
}
return trans('general.form.enter', ['field' => $label]);
}