@@ -25,11 +25,11 @@ public function rules(): array
25
25
'template ' => 'required|exists:\MailCarrier\Models\Template,slug ' ,
26
26
'trigger ' => 'sometimes|string|max:255 ' ,
27
27
'subject ' => 'required|string|max:255 ' ,
28
- 'sender ' => ['sometimes ' , new ContactRule () ],
28
+ 'sender ' => ['sometimes ' , new ContactRule ],
29
29
'cc ' => 'sometimes|array ' ,
30
30
'bcc ' => 'sometimes|array ' ,
31
- 'cc.* ' => [new ContactRule () ],
32
- 'bcc.* ' => [new ContactRule () ],
31
+ 'cc.* ' => [new ContactRule ],
32
+ 'bcc.* ' => [new ContactRule ],
33
33
'variables ' => 'sometimes|array ' ,
34
34
'tags ' => 'sometimes|array ' ,
35
35
'metadata ' => 'sometimes|array ' ,
@@ -68,9 +68,9 @@ public function rules(): array
68
68
],
69
69
'recipients.*.variables ' => 'sometimes|array ' ,
70
70
'recipients.*.cc ' => 'sometimes|array ' ,
71
- 'recipients.*.cc.* ' => [new ContactRule () ],
71
+ 'recipients.*.cc.* ' => [new ContactRule ],
72
72
'recipients.*.bcc ' => 'sometimes|array ' ,
73
- 'recipients.*.bcc.* ' => [new ContactRule () ],
73
+ 'recipients.*.bcc.* ' => [new ContactRule ],
74
74
75
75
// Recipients attachments
76
76
'recipients.*.attachments ' => 'sometimes|array ' ,
0 commit comments