<?php

namespace App\Http\Requests\DrinageWater\FailureWater;

use Illuminate\Foundation\Http\FormRequest;

class CreateRequest 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 [
            'applicantname'=>'required',
            'email'=>'required',
            'mobileno'=>'required|min:10|max:10',
            'ward_area'=>'required',
            //'adhaarno'=>'required|min:12|max:12',
            'applicantaddress'=>'required',
            'survey_no' => 'required|string|max:500',
            //'application_doc'=>'nullable|file|mimes:pdf,jpg,jpeg,png|max:10240',
            //'site_photo'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'cc_oc'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'blue_print'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'other_doc'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
        ];
    }
}
