<?php

namespace App\Http\Requests;

class StoreSpecDocumentAttachment extends SpecDocumentRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'file' => ['required', 'file', 'max:51200'],
            'spec_document_section_id' => ['sometimes', 'nullable', 'integer'],
        ];
    }
}
