Files
streamline-emr/docker/streamline-src/app/Models/AuditModelTemplate.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

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;
}