mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-25 20:51:30 -08:00
Added created_at to license pivot
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3fdee881f9
commit
5a85424295
|
@ -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');
|
||||
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue