Skip to content

Commit 191b55b

Browse files
Merge branch 'master' of github.com:programic/laravel-mailbox
2 parents 03acf4b + af7430f commit 191b55b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Http/Requests/SendGridRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class SendGridRequest extends FormRequest
1010
{
1111
public function validator()
1212
{
13-
return Validator::make($this->all(), [
14-
'email' => 'required',
15-
]);
13+
return Validator::make($this->all(), []);
1614
}
1715

1816
public function email()

src/Routing/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function createRoute(string $subject, string $pattern, $action): Route
8383

8484
public function callMailboxes(InboundEmail $email)
8585
{
86-
if ($email->isValid()) {
86+
// if ($email->isValid()) {
8787
$matchedRoutes = $this->routes->match($email)->map(function (Route $route) use ($email) {
8888
$route->run($email);
8989
});
@@ -101,7 +101,7 @@ public function callMailboxes(InboundEmail $email)
101101
if ($this->shouldStoreInboundEmails() && $this->shouldStoreAllInboundEmails($matchedRoutes)) {
102102
$this->storeEmail($email);
103103
}
104-
}
104+
// }
105105
}
106106

107107
protected function shouldStoreInboundEmails(): bool

0 commit comments

Comments
 (0)