<?php

namespace App\Http\Requests\Notifications;

use App\Http\Requests\ApiFormRequest;

class NotificationActiveRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return $this->user() !== null;
    }

    public function rules(): array
    {
        return [
            'target_group' => ['nullable', 'string', 'max:50'],
        ];
    }
}
