Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Queueable notification

Compare
Choose a tag to compare
@andreshg112 andreshg112 released this 11 Apr 21:44
· 4 commits to master since this release
e8c2287

Now it is possible to queue the default SNS notification instead of sending it immediately. Just add this to the config/audit.php file:

return [
    // ...

    // andreshg112/laravel-auditing-notifications

    'notification-driver' => [
        'notifications' => [
            Andreshg112\LaravelAuditingNotifications\AuditSnsQueue::class,
        ],

        // Required if your using Andreshg112\LaravelAuditingNotifications\AuditSns or Andreshg112\LaravelAuditingNotifications\AuditSnsQueue.
        'sns' => [
            'topic_arn' => 'arn:aws:sns:us-east-1:xxxxxxxxxxxx:auditing-notifications',
        ],
    ],
];