Skip to content

Commit babb3ff

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 354bdef + 15c96f7 commit babb3ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/PredefinedKit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function consumables()
189189
*/
190190
public function accessories()
191191
{
192-
return $this->hasMany(\App\Models\Accessory::class, 'accessory_id', 'kit_id')->withPivot('id', 'quantity');
192+
return $this->belongsToMany(\App\Models\Accessory::class, 'kits_accessories', 'kit_id', 'accessory_id')->withPivot('id', 'quantity');
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)