PHP code example of mintbridge / eloquent-auditing
1. Go to this page and download the library: Download mintbridge/eloquent-auditing 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/ */
use Mintbridge\EloquentAuditing\Auditable;
use Mintbridge\EloquentAuditing\AuditableInterface;
class Article extends Eloquent implements AuditableInterface {
use Auditable;
...
use Mintbridge\EloquentAuditing\Auditable;
use Mintbridge\EloquentAuditing\AuditableInterface;
class Article extends Eloquent implements AuditableInterface {
use Auditable;
public static $auditableEvents = [
'creating',
'created',
'updating',
//...
];
...