diff --git a/app/Models/User.php b/app/Models/User.php index f739ef8b0f..5312df2732 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'); + return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at'); } /**