fix : complete Activity log in admin side
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user