<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andreshg112 / laravel-auditing-notifications example snippets
return [
// ...
/*
|--------------------------------------------------------------------------
| Audit Driver
|--------------------------------------------------------------------------
|
| The default audit driver used to keep track of changes.
|
*/
'driver' => Andreshg112\LaravelAuditingNotifications\NotificationDriver::class,
];
return [
// ...
// andreshg112/laravel-auditing-notifications
'notification-driver' => [
// Required if you're going to use different notifications channels for sending audit data.
'notifications' => [
Andreshg112\LaravelAuditingNotifications\AuditSns::class,
// Or this if you want to queue the delivery of the message.
// https://laravel.com/docs/5.2/queues
// Andreshg112\LaravelAuditingNotifications\AuditSnsQueue::class,
],
// Required if you're going to use the default Andreshg112\LaravelAuditingNotifications\AuditSns Notification.
'sns' => [
'topic_arn' => 'arn:aws:sns:us-east-1:xxxxxxxxxxxx:auditing-notifications',
],
],
];
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Vehicle extends Model implements \OwenIt\Auditing\Contracts\Auditable
{
use \OwenIt\Auditing\Auditable, Notifiable;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.