Laravel - Webhook by Notifications Demo
This is an example project showing how you can use Laravel's notifications to implement your own webhook feature.
You can read the accompanying article here
Setup Demo
- Download or git clone the source code
- copy .env.example to .env
- run
composer install
- make an sqlite database with
touch database/database.sqlite
- run
php artisan migrate
to create the database tables - run the serve command with
php artisan serve
- load up
http://localhost:8000
- create an account and then set a webhook URL
Testing the webhook
You can use any url you like that accepts a post request. If you want a quick way of running a little test system I would suggest using HttpBin which lets test basic HTTP requests. Therefore you can use https://httpbin.org/post as a webhook url.