<?php

namespace App\Modules\Notification\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * @return array<string, list<string>>
     */
    public function rules(): array
    {
        return [
            'type' => ['nullable', 'in:info,success,warning,danger'],
            'title' => ['required', 'string', 'max:255'],
            'message' => ['nullable', 'string'],
            'action_url' => ['nullable', 'string', 'max:255'],
        ];
    }
}
