| Server IP : 52.25.153.185 / Your IP : 216.73.216.70 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/ |
Upload File : |
<?php
namespace FluentCrm\App\Models;
/**
* System Log Model - DB Model for System Logs & Activities
*
* Database Model
*
* @package FluentCrm\App\Models
*
* @version 1.0.0
*/
class SystemLog extends Model
{
protected $table = 'fc_subscriber_notes';
protected $guarded = ['id'];
protected $fillable = [
'subscriber_id',
'parent_id',
'created_by',
'type',
'title',
'description',
'created_at'
];
public static function boot()
{
parent::boot();
static::creating(function ($model) {
if (empty($model->created_at)) {
$model->created_at = fluentCrmTimestamp();
}
if (empty($model->subscriber_id)) {
$model->subscriber_id = 0;
}
$model->status = '_system_log_';
$model->updated_at = fluentCrmTimestamp();
});
static::updated(function ($model) {
$model->updated_at = fluentCrmTimestamp();
});
static::addGlobalScope('status', function ($builder) {
$builder->where('status', '_system_log_');
});
}
}