Get the admin user details

This commit is contained in:
snipe
2013-11-19 17:12:30 -05:00
parent 55aa41dc32
commit 8cc367f9e6
+8
View File
@@ -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');
}
}