Skip to content

A free open source IT asset/license management system

Added created_at to license pivot

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