This commit is contained in:
2024-09-25 22:19:33 +05:00
parent 9ef0e43083
commit f3be359202
3 changed files with 34 additions and 14 deletions

View File

@@ -301,14 +301,14 @@ class LoanOrderStoreRequest extends FormRequest
*
* @example Mahmyt
*/
'guarantor_2_name' => ['required', 'string', 'max:255'],
'guarantor_2_name' => [Rule::requiredIf($this->loan_amount > 20000), 'string', 'max:255'],
/**
* 2. Guarantor surname
*
* @example Allaberdiev
*/
'guarantor_2_surname' => ['required', 'string', 'max:255'],
'guarantor_2_surname' => [Rule::requiredIf($this->loan_amount > 20000), 'string', 'max:255'],
/**
* 2. Guarantor patronic name
@@ -322,28 +322,28 @@ class LoanOrderStoreRequest extends FormRequest
*
* @example 4323344234423443
*/
'guarantor_2_card_number' => ['required', 'string', 'digits:16'],
'guarantor_2_card_number' => [Rule::requiredIf($this->loan_amount > 20000), 'string', 'digits:16'],
/**
* 2. Guarantor name on card
*
* @example Mahmyt Allaberdiyev
*/
'guarantor_2_card_name' => ['required', 'string'],
'guarantor_2_card_name' => [Rule::requiredIf($this->loan_amount > 20000), 'string'],
/**
* 2. Guarantor Card month
*
* @example 06
*/
'guarantor_2_card_month' => ['required', 'string'],
'guarantor_2_card_month' => [Rule::requiredIf($this->loan_amount > 20000), 'string'],
/**
* 2. Guarantor Card year
*
* @example 2040
*/
'guarantor_2_card_year' => ['required', 'string'],
'guarantor_2_card_year' => [Rule::requiredIf($this->loan_amount > 20000), 'string'],
];
}
}