Files
streamline-emr/docker/streamline-src/config/audit.php
T
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00

133 lines
3.5 KiB
PHP
Executable File

<?php
/**
* This file is part of the Laravel Auditing package.
*
* @author Antério Vieira <anteriovieira@gmail.com>
* @author Quetzy Garcia <quetzyg@altek.org>
* @author Raphael França <raphaelfrancabsb@gmail.com>
* @copyright 2015-2017
*
* For the full copyright and license information,
* please view the LICENSE.md file that was distributed
* with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Audit implementation
|--------------------------------------------------------------------------
|
| Define which Audit model implementation should be used.
|
*/
'implementation' => OwenIt\Auditing\Models\Audit::class,
/*
|--------------------------------------------------------------------------
| User Keys, Model & Resolver
|--------------------------------------------------------------------------
|
| Define the User primary and foreign keys, Eloquent model and ID resolver
| class.
|
*/
'user' => [
'primary_key' => 'id',
'foreign_key' => 'user_id',
'model' => Streamline\Models\User::class,
'resolver' => OwenIt\Auditing\Resolvers\UserResolver::class
],
/*
|--------------------------------------------------------------------------
| Audit Events
|--------------------------------------------------------------------------
|
| The Eloquent events that trigger an Audit.
|
*/
'events' => [
'created',
'updated',
'deleted',
'restored',
],
/*
|--------------------------------------------------------------------------
| Strict mode
|--------------------------------------------------------------------------
|
| Enable the strict mode when auditing?
|
*/
'strict' => true,
/*
|--------------------------------------------------------------------------
| Audit timestamps
|--------------------------------------------------------------------------
|
| Should the created_at, updated_at and deleted_at timestamps be audited?
|
*/
'timestamps' => true,
/*
|--------------------------------------------------------------------------
| Audit threshold
|--------------------------------------------------------------------------
|
| Specify a threshold for the amount of Audit records a model can have.
| Zero means no limit.
|
*/
'threshold' => 0,
/*
|--------------------------------------------------------------------------
| Audit Driver
|--------------------------------------------------------------------------
|
| The default audit driver used to keep track of changes.
|
*/
'driver' => 'database',
/*
|--------------------------------------------------------------------------
| Audit Drivers
|--------------------------------------------------------------------------
|
| Available audit drivers and respective configurations.
|
*/
'drivers' => [
'database' => [
'table' => 'audits',
'connection' => null,
],
],
/*
|--------------------------------------------------------------------------
| Audit Console?
|--------------------------------------------------------------------------
|
| Whether we should audit console events (eg. php artisan db:seed).
|
*/
'console' => false,
];