<?php

namespace App\Http\Requests\InsuranceOfBirthCertificate\InsuranceofBirth;

use Illuminate\Foundation\Http\FormRequest;

class UpdateRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'surname'=>'required',
            'name'=>'required',
            'father_name'=>'required',
            'address'=>'required',
            'room_name'=>'required',
            'block_no'=>'required',
            'road_name'=>'required',
            'ward'=>'required',
            'pincode_no'=>'required',
            'ward_no'=>'required',
            'mbmc_elec_ward_no'=>'required',
            'contact_no'=>'required',
            'mother_full_name'=>'required',
            'father_full_name'=>'required',
            'mother_father_address'=>'required',
            'birth_place'=>'required',
            'birth_date'=>'required',
            'gender'=>'required',
            'child_name'=>'required',
            // 'no_of_certificate'=>'required'
        ];
    }
}
