visa master
This commit is contained in:
@@ -324,6 +324,20 @@ class LoanOrderStoreRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
'guarantor_card_year' => ['required', 'string'],
|
'guarantor_card_year' => ['required', 'string'],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarantor Passport serie
|
||||||
|
*
|
||||||
|
* @example I-AS
|
||||||
|
*/
|
||||||
|
'guarantor_passport_serie' => ['required', 'string', Rule::in(PassportRepo::values())],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarantor Passport number
|
||||||
|
*
|
||||||
|
* @example 100999
|
||||||
|
*/
|
||||||
|
'guarantor_passport_id' => ['required', 'numeric', 'digits:6'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2. Guarantor name
|
* 2. Guarantor name
|
||||||
*
|
*
|
||||||
@@ -372,6 +386,20 @@ class LoanOrderStoreRequest extends FormRequest
|
|||||||
* @example 2040
|
* @example 2040
|
||||||
*/
|
*/
|
||||||
'guarantor_2_card_year' => [Rule::requiredIf($this->loan_amount > 20000), 'string'],
|
'guarantor_2_card_year' => [Rule::requiredIf($this->loan_amount > 20000), 'string'],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarantor Passport serie
|
||||||
|
*
|
||||||
|
* @example I-AS
|
||||||
|
*/
|
||||||
|
'guarantor_2_passport_serie' => ['required', 'string', Rule::in(PassportRepo::values())],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Guarantor Passport number
|
||||||
|
*
|
||||||
|
* @example 100999
|
||||||
|
*/
|
||||||
|
'guarantor_2_passport_id' => ['required', 'numeric', 'digits:6'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user