A free open source IT asset/license management system
Used updated_at instead
snipe3f5cc2507dc3
diff --git a/app/Models/User.php b/app/Models/User.phpindex 5312df2732..e535fa0fde 100644--- a/app/Models/User.php+++ b/app/Models/User.php@@ -337,7 +337,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo*/public function licenses(){- return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at');+ return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at', 'updated_at');}/**diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.phpindex 3be7923d88..cd82289863 100644--- a/resources/views/users/print.blade.php+++ b/resources/views/users/print.blade.php@@ -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++