visa master

This commit is contained in:
2024-10-18 17:51:24 +05:00
parent a326e6c2eb
commit 001fe497fd
2 changed files with 30 additions and 2 deletions

View File

@@ -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'],
]; ];
} }
} }

View File

@@ -38,7 +38,7 @@ class VisaMasterPaymentOrder extends Model implements HasMedia
'payment_reciever' => 'array', 'payment_reciever' => 'array',
]; ];
/** /**
* The "booted" method of the model. * The "booted" method of the model.
*/ */
protected static function booted(): void protected static function booted(): void
@@ -53,7 +53,7 @@ class VisaMasterPaymentOrder extends Model implements HasMedia
sendSMS( sendSMS(
phone: $user->phone, phone: $user->phone,
message: $visaMasterPaymentOrder->unique_id . 'belgili sargydyňyz kanagatlandyryldy. Banka ýüztutmagyňyzy Sizden haýyş edýäris.' message: $visaMasterPaymentOrder->unique_id.'belgili sargydyňyz kanagatlandyryldy. Banka ýüztutmagyňyzy Sizden haýyş edýäris.'
); );
} }
}); });