Skip to content

Commit f8aaf14

Browse files
committed
📝 Update README
1 parent 809b680 commit f8aaf14

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,22 @@ Route::post('webhook/handle', function (Request $request) {
437437
})->name('handle-webhook');
438438
```
439439

440+
Add the route to the `VerifyCsrfToken` middleware (in `app/Http/Middleware/VerifyCsrfToken.php`):
441+
442+
```diff
443+
class VerifyCsrfToken extends Middleware
444+
{
445+
/**
446+
* The URIs that should be excluded from CSRF verification.
447+
*
448+
* @var array
449+
*/
450+
protected $except = [
451+
+ 'webhook/handle'
452+
];
453+
}
454+
```
455+
440456
That's it!
441457

442458
### Creating a webhook

0 commit comments

Comments
 (0)