update fix deadcode, security
This commit is contained in:
@@ -38,13 +38,4 @@ class ActivityLog extends Model
|
||||
$model->created_at = now();
|
||||
});
|
||||
}
|
||||
|
||||
public function causer()
|
||||
{
|
||||
return match ($this->causer_type) {
|
||||
'admin' => $this->belongsTo(User::class, 'causer_id'),
|
||||
'customer' => $this->belongsTo(Customer::class, 'causer_id'),
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user