Step 3: Webhook endpoint (middleware, form request, controller, route)

This commit is contained in:
idevakk
2026-03-05 14:03:07 +05:30
parent 2491be9809
commit 2a7c77d7be
4 changed files with 116 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
<?php
// Webhook routes will be added in Step 3
use App\Http\Controllers\EmailWebhookController;
use Illuminate\Support\Facades\Route;
Route::post('/webhooks/incoming_email', [EmailWebhookController::class, 'handle'])
->middleware('verify.webhook.secret');