user() !== null; } /** * @return array> */ public function rules(): array { return [ 'category' => ['required', 'string', Rule::in(SupportConversation::categories())], 'subject' => ['required', 'string', 'max:120'], 'body' => ['required', 'string', 'max:2000'], 'attachments' => ['nullable', 'array', 'max:3'], 'attachments.*' => [new SupportAttachmentFile], ]; } }