A free open source IT asset/license management system
Added pivot for `note`
snipec1e5d0334025
diff --git a/app/Models/Component.php b/app/Models/Component.phpindex fb841d3074..79d2fe55f2 100644--- a/app/Models/Component.php+++ b/app/Models/Component.php@@ -109,7 +109,7 @@ class Component extends SnipeModel*/public function assets(){- return $this->belongsToMany(\App\Models\Asset::class, 'components_assets')->withPivot('id', 'assigned_qty', 'created_at', 'user_id');+ return $this->belongsToMany(\App\Models\Asset::class, 'components_assets')->withPivot('id', 'assigned_qty', 'created_at', 'user_id', 'note');}/**