fix apis
This commit is contained in:
@@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user