Webhooks for Laravel
The following webhook are provided out-of-the-box.
| Path | Description |
|---|---|
| prismic/sync | Syncs prismic data with the cache. |
| prismic/flush | Flushes the prismic cache. |
| prismic/queue | Creates a queued job to sync prismic data with the cache. |
| hooks/prismic | Same as prisimc/queue but requires webhook validation. |
Validating Webooks
The Incraigulous\PrismicToolkit\Middleware\VerifyPrismicWebhook middleware can be used to validate a webhook's secret as defined in the config file.