mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Used updated_at instead
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5a85424295
commit
3f5cc2507d
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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++
|
||||
|
|
Loading…
Reference in a new issue