Skip to content

Commit 30c3e9c

Browse files
authored
Update MailCareRequest.php
1 parent 024578a commit 30c3e9c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Http/Requests/MailCareRequest.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@
88

99
class MailCareRequest extends FormRequest
1010
{
11-
public function validator()
11+
public function rules()
1212
{
13-
return Validator::make($this->all(), []);
13+
return [
14+
"content_type" => "required|in:message/rfc2822",
15+
];
16+
}
17+
18+
public function prepareForValidation()
19+
{
20+
$this->merge([
21+
"content_type" => $this->headers->get("Content-type"),
22+
]);
1423
}
1524

1625
public function email()

0 commit comments

Comments
 (0)