Skip to content

Commit 9245324

Browse files
author
MailCare
authored
Update MailCareRequest.php
1 parent 8353dcb commit 9245324

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Http/Requests/MailCareRequest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@
88

99
class MailCareRequest extends FormRequest
1010
{
11-
public function validator()
12-
{
13-
return Validator::make($this->all(), [
14-
'email' => 'required',
15-
]);
16-
}
17-
1811
public function email()
1912
{
20-
return InboundEmail::fromMessage($this->get('email'));
13+
/** @var InboundEmail $modelClass */
14+
$modelClass = config('mailbox.model');
15+
16+
return $modelClass::fromMessage($this->getContent());
2117
}
2218
}

0 commit comments

Comments
 (0)