PHP code example of medicivn / eloquent-logger
1. Go to this page and download the library: Download medicivn/eloquent-logger 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/ */
medicivn / eloquent-logger example snippets
use Medicivn\EloquentLogger\ActivityLogTrait;
class UserTest extends Model
{
use HasFactory, ActivityLogTrait;
/**
* The column need note write the change
*
* Default: []
*/
const LOGGABLE = [
'name',
];
/**
* The model name to record changes
*
* Default: null
*/
const MODEL_NAME_LOG = ActivityUserTestLog::class;