PHP code example of exertis / yii2-save-with-audit-trail-behavior
1. Go to this page and download the library: Download exertis/yii2-save-with-audit-trail-behavior 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/ */
exertis / yii2-save-with-audit-trail-behavior example snippets
use exertis\savewithaudittrail\SaveWithAuditTrailBehavior;
class Post extends ActiveRecord
{
public function behaviors() {
return [
[
'class' => SaveWithAuditTrailBehavior::className(),
],
];
}
}
php yii migrate --migrationPath=@vendor/exertis/yii2-save-with-audit-trail-behavior/migrations