File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ public function rules(): array
60
60
'recipients ' => 'required_without:recipient|prohibits:recipient|array|min:1 ' ,
61
61
'recipients.* ' => [
62
62
// Apply rule only when recipients is an array of objects
63
- Rule::when ($ this ->has ('recipients ' ) && !is_array ($ this ->json ('recipients.0 ' )), 'required|email ' ),
63
+ Rule::when ($ this ->has ('recipients ' ) && !is_array ($ this ->input ('recipients.0 ' )), 'required|email ' ),
64
64
],
65
65
'recipients.*.email ' => [
66
66
// Apply rule only when recipients is an array of objects
67
- Rule::when ($ this ->has ('recipients ' ) && is_array ($ this ->json ('recipients.0 ' )), 'required|email ' ),
67
+ Rule::when ($ this ->has ('recipients ' ) && is_array ($ this ->input ('recipients.0 ' )), 'required|email ' ),
68
68
],
69
69
'recipients.*.variables ' => 'sometimes|array ' ,
70
70
'recipients.*.cc ' => 'sometimes|array ' ,
You can’t perform that action at this time.
0 commit comments