Files
online.tbbank.gov.tm-larave…/app/Modules/LoanOrder/Controllers/Requests/LoanOrderStoreRequest.php
2024-09-09 23:35:11 +05:00

60 lines
1.6 KiB
PHP

<?php
namespace App\Modules\LoanOrder\Controllers\Requests;
use App\Repos\Order\Loan\LoanTypeRepo;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class LoanOrderStoreRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string>
*/
public function rules(): array
{
return [
/**
* Loan type
*
* @var int
*/
'loan_type' => ['required', 'int', Rule::in(LoanTypeRepo::values())],
// "region",
// "branch_id",
// "customer_name",
// "customer_surname",
// "customer_patronic_name",
// "passport_address",
// "real_address",
// "passport_serie",
// "passport_id",
// "passport_given_at",
// "passport_given_by",
// "born_place",
// "born_at",
// "email",
// "phone",
// "phone_additional",
// "phone_home",
// "work_region",
// "work_province_id",
// "work_company",
// "work_company_accountant_number",
// "work_started_at",
// "work_salary",
// "work_position",
// "education",
// "marriage_status",
// "passport_one",
// "passport_two",
// "passport_three",
// "passport_four",
];
}
}