Skip to content

Commit

Permalink
Merge branch 'fix/reply-and-from-formatting' of https://github.com/vo…
Browse files Browse the repository at this point in the history
…rmkracht10/laravel-mails

# Conflicts:
#	src/Controllers/WebhookController.php
  • Loading branch information
markvaneijk committed Sep 9, 2024
2 parents 1acb930 + 5b17886 commit 675bc77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class WebhookController
{
public function __invoke(Request $request, string $driver): Response
{
if (array_key_exists($driver, array_column(Provider::cases(), 'name'))) {
if (! in_array($driver, array_column(Provider::cases(), 'value'))) {
return response('Unknown provider.', status: 400);
}

Expand All @@ -21,7 +21,8 @@ public function __invoke(Request $request, string $driver): Response
}

MailEvent::dispatch(
$driver, $request->except('signature')
$driver,
$request->except('signature')
);

return response('Event processed.', status: 202);
Expand Down

0 comments on commit 675bc77

Please sign in to comment.