diff --git a/app/models/Asset.php b/app/models/Asset.php index b81cb0c1fe..6c5413cb88 100644 --- a/app/models/Asset.php +++ b/app/models/Asset.php @@ -65,6 +65,14 @@ class Asset extends Elegant { return $this->hasMany('Actionlog','asset_id')->orderBy('added_on', 'desc'); } + /** + * Get action logs for this asset + */ + public function adminuser() + { + return $this->belongsTo('User','id'); + } + }