PHP code example of tatter / audits
1. Go to this page and download the library: Download tatter/audits library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tatter / audits example snippets
use Tatter\Audits\Traits\AuditsTrait;
class JobModel extends Model
{
use AuditsTrait;
protected $afterInsert = ['auditInsert'];
protected $afterUpdate = ['auditUpdate'];
protected $afterDelete = ['auditDelete'];
use Tatter\Audits\Traits\AuditsTrait;
class JobModel extends Model
{
use AuditsTrait;
protected $afterInsert = ['auditInsert'];
protected $afterUpdate = ['auditUpdate'];
protected $afterDelete = ['auditDelete'];