<?php

declare(strict_types=1);

namespace ImovelZapAi\Properties\Infrastructure\Http\Requests;

class StorePropertyRequest extends PropertyFormRequest
{
    /**
     * @return array<string, mixed>
     */
    public function rules(): array
    {
        return array_merge($this->baseRules(), $this->imageRules(), [
            'images' => ['required', 'array', 'min:1'],
            'images.*' => ['image', 'max:5120'],
        ]);
    }
}
