From 6d64e35333173f1b1699d5658da191dbd7c4ce72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 25 Sep 2024 11:11:52 +0100 Subject: [PATCH] Added new currency code control for money package.. --- app/Http/Requests/Setting/Currency.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/Setting/Currency.php b/app/Http/Requests/Setting/Currency.php index c100ba690..0b8a74a82 100644 --- a/app/Http/Requests/Setting/Currency.php +++ b/app/Http/Requests/Setting/Currency.php @@ -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',