<?php

namespace App\Domains\Desfile\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    /** @return array<string, mixed> */
    public function rules(): array
    {
        return [
            'image' => ['required', 'image', 'mimes:jpeg,jpg,png,webp', 'max:10240'],
            'is_enabled' => ['sometimes', 'boolean'],
        ];
    }
}
