Skip to content

jeffersonsimaogoncalves/cakephp-auditing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP Plugin de Auditoria

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

About

Plugin da auditoria para CakePHP 3.5+

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%