updated currency request reqex

This commit is contained in:
Cihan Şentürk 2025-03-28 12:24:33 +03:00 committed by GitHub
parent 16b8147733
commit 6ccf4a7277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ class Currency extends FormRequest
'rate' => 'required|gt:0', 'rate' => 'required|gt:0',
'enabled' => 'integer|boolean', 'enabled' => 'integer|boolean',
'default_currency' => 'nullable|boolean', 'default_currency' => 'nullable|boolean',
'decimal_mark' => 'required|string|different:thousands_separator|regex:/^[A-Za-z.,_-\s-]+$/', 'decimal_mark' => 'required|string|different:thousands_separator|regex:/^[A-Za-z.,_\s-]+$/',
'symbol_first' => 'nullable|boolean', 'symbol_first' => 'nullable|boolean',
'thousands_separator' => 'different:decimal_mark|regex:/^[A-Za-z.,_-`\s-]+$/', 'thousands_separator' => 'nullable|different:decimal_mark|regex:/^[A-Za-z.,_\s-]+$/',
]; ];
} }
} }