PHP code example of angelxmoreno / cakephp-auditor

1. Go to this page and download the library: Download angelxmoreno/cakephp-auditor 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/ */

    

angelxmoreno / cakephp-auditor example snippets


$this->addBehavior('Auditor.Auditor');

$this->addBehavior('Auditor.Audit');

[
    'attach'      => true,
    'reverse'     => false,
    'skip_fields' => [],
]

\Auditor\Model\Behavior\AuditBehavior::makeAuditable($this, [
    'attach'      => false,
    'skip_fields' => ['modified', 'created'],
]);