*/ public function rules(): array { return [ 'to' => ['required', 'array', 'min:1'], 'to.*' => ['required', 'email:rfc,dns'], 'cc' => ['nullable', 'array'], 'cc.*' => ['email:rfc,dns'], 'bcc' => ['nullable', 'array'], 'bcc.*' => ['email:rfc,dns'], 'subject' => ['nullable', 'string', 'max:255'], 'body' => ['required', 'string'], 'folder' => ['nullable', 'string', 'max:30'], 'attachments' => ['nullable', 'array'], 'metadata' => ['nullable', 'array'], 'message_uid' => ['nullable', 'string', 'max:255'], ]; } }