From c1e5d03340255f16fdffc9ef498f9b90b0163649 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 10 Aug 2022 15:03:41 -0700 Subject: [PATCH] Added pivot for `note` Signed-off-by: snipe --- app/Models/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Component.php b/app/Models/Component.php index 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'); } /**