36 lines
645 B
PHP
36 lines
645 B
PHP
<?php
|
|
|
|
namespace Paymenter\Extensions\Others\ComplianceTools\Models;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AuditLog extends Model
|
|
{
|
|
protected $table = 'ext_compliance_audit_logs';
|
|
|
|
protected $fillable = [
|
|
'category',
|
|
'event',
|
|
'subject_user_id',
|
|
'actor_type',
|
|
'actor_id',
|
|
'ip_address',
|
|
'context',
|
|
];
|
|
|
|
protected $casts = [
|
|
'context' => 'array',
|
|
];
|
|
|
|
public function subject()
|
|
{
|
|
return $this->belongsTo(User::class, 'subject_user_id');
|
|
}
|
|
|
|
public function actor()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|