<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'question' => ['required', 'string', 'max:5000'],
        ];
    }

    public function messages(): array
    {
        return [
            'question.required' => 'Pertanyaan AI wajib diisi.',
            'question.max' => 'Pertanyaan terlalu panjang. Maksimal 5000 karakter.',
        ];
    }
}
