fix : complete Activity log in admin side

This commit is contained in:
2026-08-20 14:51:46 -07:00
parent 6ecb9b2704
commit 88503595d7
14 changed files with 316 additions and 223 deletions
+17
View File
@@ -35,6 +35,8 @@ class Tour extends Model
'departure_time',
'status',
'created_at',
'created_by',
'updated_by',
];
public function file()
@@ -51,4 +53,19 @@ class Tour extends Model
{
return $this->hasMany(Comment::class, 'tour_id');
}
protected $hidden = [
'created_by',
'updated_by',
];
public function creator()
{
return $this->belongsTo(Admin::class, 'created_by');
}
public function updater()
{
return $this->belongsTo(Admin::class, 'updated_by');
}
}