first commit
This commit is contained in:
31
app/Models/ActivityLog.php
Normal file
31
app/Models/ActivityLog.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user