• Stars
    star
    17
  • Rank 1,257,181 (Top 25 %)
  • Language
    PHP
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The example code for the article https://medium.com/@SlyFireFox/laravel-innovations-making-your-own-webhook-mechanism-through-notifications-96e75e99a2b1

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

  1. Download or git clone the source code
  2. copy .env.example to .env
  3. run composer install
  4. make an sqlite database with touch database/database.sqlite
  5. run php artisan migrate to create the database tables
  6. run the serve command with php artisan serve
  7. load up http://localhost:8000
  8. 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.

More Repositories

1

laravel-elixir-mjml

A task plugin for running MJML templates in Laravel Elixir
JavaScript
11
star
2

hexavel

A modified version of the Laravel Framework
PHP
7
star
3

openai-laravel-demo

A demo app for using OpenAI with Laravel
PHP
7
star
4

macros-demo

A Demo for Macros
PHP
7
star
5

nova-social-login-demo

A demo for how to implement Social Logins for Laravel Nova
PHP
5
star
6

laravel-runscope

A PHP library for making it easy to use Runscope with your web hooks and external API calls
PHP
5
star
7

notifications-demo

The code in this project is an example of how to create a simple streamlined email unsubscribe mechanism for Laravel's notification system
PHP
5
star
8

hieroglyph

A package to simplify changing between different icon sets
PHP
3
star
9

roadrunner-plugin-template

Template project for a RoadRunner plugin
Go
3
star
10

bitpayclient

An OOP PHP client for interacting with the BitPay API
PHP
2
star
11

validation-rule-demo

The example code for the article https://medium.com/@SlyFireFox/test-driven-development-for-custom-laravel-validation-rules-669d01e34a65
PHP
2
star
12

seo-demo

The code in this project is an example of how to create root level URLs for dynamic content without causing wildcard clashes
PHP
2
star
13

make-command-demo

A demo for making new Make commands in Laravel
PHP
2
star
14

laravel-incident-logs-demo

The example code for the article https://medium.com/@SlyFireFox/laravel-how-to-make-incident-logs-d7fa88e48490
PHP
2
star
15

hexavel-spark

A library for making installs of Spark compatible with Laravel Spark
PHP
1
star
16

torino

An example of a simple Onion address generator
JavaScript
1
star
17

graphaware-reco-client-php

A configurable PHP library for fetching recommendations from a GraphAware Recommendation setup
PHP
1
star
18

waitformysql

A mini golang util for waiting for a mysql database to be up
Go
1
star
19

laravel-casts-examples

A demo for Laravel Custom Casts with common examples for Money, Location/Address and Date Intervals
PHP
1
star
20

testing-trait-hooks-demo

Demo for Trait hooks to use in Test Cases
PHP
1
star
21

custom-make-model-command

A demo for customising the Laravel make model command to use singular table names.
PHP
1
star