Fixed user relationship
This commit is contained in:
@@ -31,7 +31,7 @@ class Accessory extends Elegant
|
||||
|
||||
public function users()
|
||||
{
|
||||
return $this->belongsToMany('User', 'accessories_users', 'user_id')->withTrashed();
|
||||
return $this->belongsToMany('User', 'accessories_users', 'accessory_id','assigned_to')->withTrashed();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user