<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class UpdateInstituteProfileRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'editid' => ['required', 'integer', 'exists:users,id'],
            'institutename' => ['required', 'string', 'max:200'],
            'addressname' => ['required', 'string', 'max:500'],
            'affiliatedetail' => ['nullable', 'string', 'max:500'],
            'statename' => ['required', 'string', 'max:200'],
            'cityname' => ['required', 'string', 'max:200'],
            'postalcode' => ['required', 'digits_between:4,10'],
            'photoid' => ['nullable', 'integer'],
        ];
    }
}
