Added new currency code control for money package..

This commit is contained in:
Cüneyt Şentürk 2024-09-25 11:11:52 +01:00
parent 14fa016c01
commit 6d64e35333
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Currency extends FormRequest
return [
'name' => 'required|string',
'code' => 'required|string|unique:currencies,NULL,' . ($id ?? 'null') . ',id,company_id,' . $company_id . ',deleted_at,NULL',
'code' => 'required|string|currency_code|unique:currencies,NULL,' . ($id ?? 'null') . ',id,company_id,' . $company_id . ',deleted_at,NULL',
'rate' => 'required|gt:0',
'enabled' => 'integer|boolean',
'default_currency' => 'nullable|boolean',