Files
Nexora/app/Models/ActivityLog.php

32 lines
496 B
PHP
Raw Normal View History

2025-04-23 00:14:33 +06:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ActivityLog extends Model
{
protected $table = 'activity_log';
protected $fillable = [
'log_name',
'description',
'subject_id',
'subject_type',
'causer_id',
'causer_type',
'properties'
];
public function subject()
{
return $this->morphTo();
}
public function causer()
{
return $this->morphTo();
}
}