Used updated_at instead

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-10 16:39:49 +00:00
parent 5a85424295
commit 3f5cc2507d
2 changed files with 2 additions and 2 deletions

View file

@ -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');
}
/**

View file

@ -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++