Loggable
class Loggable extends Behavior implements BehaviorInterface
Loggable creates a blame interface for changes.
Make sure you enable snapshots on your models to allow for field tracking:
public function initialize()
{
$this->keepSnapshots(true);
}
In order to keep from overloading the database or causing issues with in-transaction queries, audit logs are pushed to a queue and processed out-of-band.
Methods
notify(object $eventType, ModelInterface $model)
Compare model changes, and record
Details
at line line 32
notify(object $eventType, ModelInterface $model)
Compare model changes, and record