Laravel AWS SNS Events
7.x
7.x
  • โšกIntroduction
  • ๐ŸŽ‰Support
  • Getting Started
    • โฌ†๏ธUpgrading from 6.x
    • ๐Ÿš€Installation
    • ๐Ÿ“กConfiguring Events
    • ๐ŸงชTesting your implementation
  • Customization
    • ๐Ÿ“ฆCustom Payload
    • ๐ŸคฟCustom Event Classes
    • ๐Ÿ”—Custom Method Hooks
  • AWS Webhooks
    • โšกIntroduction
    • ๐Ÿš€Installation
    • ๐Ÿ™ŒShowcase
    • ๐Ÿ–ฅ๏ธSupported AWS Services
      • ๐ŸšจCloudWatch Alerts
      • ๐Ÿ“งSimple Email Service (SES)
      • ๐ŸŒ‰EventBridge Events
    • ๐ŸงชTesting your implementation
Powered by GitBook
On this page
  • Installing the package
  • Configure the webhook controller route
  • Create an AWS Account & create an SNS Topic

Was this helpful?

  1. Getting Started

Installation

Installing the package

Hop into your console and install the package via Composer:

composer require rennokki/laravel-sns-events

Configure the webhook controller route

A controller that will handle the response for you should be registered in your routes:

use Rennokki\LaravelSnsEvents\Http\Controllers\SnsController;

Route::any('/aws-sns-webhook', [SnsController::class, 'handle']);

Make sure you whitelist your route in VerifyCsrfToken.php:

protected $except = [
    // ...
    'aws-sns-webhook/',
];

Create an AWS Account & create an SNS Topic

You will need an AWS account and register an SNS Topic and set up a subscription for HTTP(s) protocol that will point out the route you just registered.

If you have registered the route and created an SNS Topic, you should register the URL and click the confirmation button from the AWS Dashboard. In a short while, if you implemented the route well, you'll be seeing that your endpoint is registered.

PreviousUpgrading from 6.xNextConfiguring Events

Last updated 3 years ago

Was this helpful?

๐Ÿš€