mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
53 lines
1.1 KiB
PHP
Executable File
53 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* This file is to show the sample implementations of the laravel-audit library
|
|
* and will act as a reference for whatever parameters are passed into a model
|
|
*/
|
|
|
|
namespace Streamline\Models;
|
|
|
|
// include the Auditable class
|
|
use OwenIt\Auditing\Contracts\Auditable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AuditModelTemplate extends Model implements Auditable{
|
|
|
|
// implement methods in the Auditable class to avoid abstraction
|
|
use \OwenIt\Auditing\Auditable;
|
|
|
|
/**
|
|
* Attributes to include in the Audit.
|
|
*
|
|
* Array includes elements that will be whitelisted, these are column names
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $auditInclude = [
|
|
'title',
|
|
'content',
|
|
];
|
|
|
|
/**
|
|
* Attributes to exclude from the Audit.
|
|
*
|
|
* Array includes elements that will be blacklisted, these are column names
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $auditExclude = [
|
|
'published',
|
|
];
|
|
|
|
/**
|
|
* Should the audit be strict?
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $auditStrict = true;
|
|
|
|
|
|
|
|
|
|
}
|