mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?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;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user