The company form currency field support all currencies and create automatic new currency!

This commit is contained in:
Cüneyt Şentürk
2022-10-25 11:21:05 +03:00
parent 5eace1cbd0
commit f2c0718fee
6 changed files with 107 additions and 4 deletions

View File

@ -35,6 +35,10 @@ class Currency extends Form
$this->currencies = Model::enabled()->orderBy('name')->pluck('name', 'code');
if (! empty($this->options)) {
$this->currencies = $this->options;
}
$currency_id = old('currency.id', old('currency_id', null));
if (! empty($currency_id)) {