Get the admin user details
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user