Skip to content

Commit

Permalink
Added pivot for note
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Aug 10, 2022
1 parent fb2fe61 commit c1e5d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function location()
*/
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');
}

/**
Expand Down

0 comments on commit c1e5d03

Please sign in to comment.