Skip to content

Commit

Permalink
Merge pull request #14407 from snipe/bug/sc-25019_added_created_at_pivot
Browse files Browse the repository at this point in the history
Added created_at to license pivot
  • Loading branch information
snipe committed Mar 10, 2024
2 parents 3fdee88 + 3f5cc25 commit 1df56a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function consumables()
*/
public function licenses()
{
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id');
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at', 'updated_at');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion resources/views/users/print.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<i class="fa-lock" aria-hidden="true"></i> {{ str_repeat('x', 15) }}
@endcan
</td>
<td>{{ $license->pivot->created_at }}</td>
<td>{{ $license->pivot->updated_at }}</td>
</tr>
@php
$lcounter++
Expand Down

0 comments on commit 1df56a7

Please sign in to comment.