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.*' => ['file', 'max:10240', 'mimes:jpg,jpeg,png,webp,gif,pdf,txt,log,json,zip'], ]; } }