<?php

namespace App\Http\Requests\Administrator;

use App\Http\Requests\ApiFormRequest;

class SavePrintRecipientsRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return auth()->check();
    }

    public function rules(): array
    {
        return [
            'notify' => ['required', 'array'],
        ];
    }

    public function messages(): array
    {
        return [
            'notify.required' => 'Notify payload is required.',
            'notify.array' => 'Notify payload must be an array.',
        ];
    }
}
