I need another field in the activity log table document_Id
.
Is this possible?
ActivityLog Model File code
class ActivityLog extends Model
{
public $table = 'activity_log';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $primaryKey = 'id';
public $fillable = [
'log_name',
'description',
'subject_type',
'subject_id',
'document_id',
'causer_type',
'causer_id',
'properties'
];
}
Controller File Code.
class ReportHeader extends ChangeConnection
{
public $table = 'reportheader';
const CREATED_AT = 'createdDateTime';
const UPDATED_AT = 'timestamp';
protected $primaryKey = 'reportSystemID';
protected static $logAttributes = [ .. ];
protected static $logName = 'reportheader';
use LogsActivity;
public $fillable = [ .. ];
}
I need another field in the activity log table document_Id
. I am using activity log. I want to add extra column, document_Id to the activity log table.
It is possible to add a new field.