jeffersonsimaogoncalves/cakephp-auditing

Auditoria plugin for CakePHP

1.1.4 2018-11-22 18:31 UTC

This package is auto-updated.

Last update: 2022-05-07 00:47:52 UTC


README

Este plugin faz o papel de coletar as mudanças quando se faz alguma ação de persistencia no banco de dados

Instalação

Você pode instalar usando o composer.

composer require jeffersonsimaogoncalves/cakephp-auditing

Habilitar Plugin

$ bin/cake plugin load JeffersonSimaoGoncalves/Auditing

Configurar Behavior

// src/Model/Table/ExampleTable.php

class ExampleTable extends Table
{
    /**
     * @param array $config
     *
     * @return void
     */
    public function initialize(array $config)
    {
        parent::initialize($config);

        // Add the behaviour to your table
        $this->addBehavior('JeffersonSimaoGoncalves/Auditing.Logger');
    }
}