<?php

namespace App\Http\Requests\DrinageWater\SewerageNoc;

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',
            'mobileno'=>'required|min:10|max:10',
            'ward_area'=>'required',
            'tax_no'=>'nullable',
            'applicantaddress'=>'required',
            'propertyno'=>'required',
           // 'application_doc'=>'nullable|file|mimes:pdf,jpg,jpeg,png|max:10240',
            //'bill_doc'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'bill_doc'  => 'required|file|mimes:pdf,PDF,png,PNG,jpg,JPG,jpeg,JPEG|max:2048',
           // 'site_photo'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'blue_print'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
           // 'other_document'=>'required|file|mimes:pdf,jpg,jpeg,png|max:10240',
        ];
    }
}
