diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..531eeb5 --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,20 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + ) + ->withMiddleware(function (Middleware $middleware) { + $middleware->validateCsrfTokens(except: [ + 'webhook' // Exclude webhook from CSRF + ]); + }) + ->withExceptions(function (Exceptions $exceptions) { + // + })->create(); \ No newline at end of file