Download the PHP package andreshg112/laravel-auditing-notifications without Composer
On this page you can find all versions of the php package andreshg112/laravel-auditing-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andreshg112/laravel-auditing-notifications
More information about andreshg112/laravel-auditing-notifications
Files in andreshg112/laravel-auditing-notifications
Package laravel-auditing-notifications
Short Description A notifications driver for the owen-it/laravel-auditing package. Allows sending notifications with audit data through custom channels.
License MIT
Homepage https://github.com/andreshg112/laravel-auditing-notifications
Informations about the package laravel-auditing-notifications
Notification Driver for Laravel Auditing ^8.0
This package allows you to send notifications with audit data instead of saving it to an accessible database. By default, it sends notifications through AWS SNS using the package lab123it/aws-sns.
Use case
If you have some microservices and want to have centralized auditing, this could be helpful.
Requirements
- PHP >= 7.1
- Laravel >= 5.2 && < 5.8
Installation
Step 1
This package depends on owen-it/laravel-auditing:^8.0 and lab123it/aws-sns:dev-master, so you have to install and configure them first in order to make this work.
You can install the package via composer:
Step 2
Change the audit default driver:
You can make this locally on a model. Please see the documentation: http://laravel-auditing.com/docs/8.0/audit-drivers.
Step 3
In your config/audit.php
file, add this:
Usage
Add the Illuminate\Notifications\Notifiable
trait to the models you want to audit, besides Auditable contract and trait.
That's all! Just execute an auditable event over the model in order to send a notification.
Testing
Changelog
Please see Releases for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Andrés Herrera García
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-auditing-notifications with dependencies
andreshg112/aws-sns Version 1.0.2
illuminate/support Version 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || 6.* || 7.*
owen-it/laravel-auditing Version ^9.0