From 430b8233ed6f23402597fe54215b9988a3405dd7 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 26 Feb 2015 15:24:51 -0800 Subject: [PATCH] Fixed user relationship --- app/models/Accessory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Accessory.php b/app/models/Accessory.php index b5b4e6e151d3..b5c0f5af4528 100755 --- a/app/models/Accessory.php +++ b/app/models/Accessory.php @@ -31,7 +31,7 @@ public function assetlog() public function users() { - return $this->belongsToMany('User', 'accessories_users', 'accessory_id','assigned_to')->withTrashed(); + return $this->belongsToMany('User', 'accessories_users', 'accessory_id','assigned_to')->withPivot('id')->withTrashed(); }