Added created_at to license pivot

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-10 16:33:04 +00:00
parent 3fdee881f9
commit 5a85424295

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');
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at');
}
/**