Skip to content

Commit 87732bb

Browse files
committed
Added basic auth middleware to PostmarkController
1 parent 0fb7978 commit 87732bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Http/Controllers/PostmarkController.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
namespace BeyondCode\Mailbox\Http\Controllers;
44

5+
use Illuminate\Routing\Controller;
56
use BeyondCode\Mailbox\Facades\Mailbox;
67
use BeyondCode\Mailbox\Http\Requests\PostmarkRequest;
78

8-
class PostmarkController
9+
class PostmarkController extends Controller
910
{
11+
public function __construct()
12+
{
13+
$this->middleware('laravel-mailbox');
14+
}
15+
1016
public function __invoke(PostmarkRequest $request)
1117
{
1218
Mailbox::callMailboxes($request->email());

0 commit comments

Comments
 (0)