updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
+52
View File
@@ -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;
}