mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added pivot for note
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
fb2fe61daf
commit
c1e5d03340
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue