From 5a8542429595507a9aadb8824f5a3865e1830f85 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 10 Mar 2024 16:33:04 +0000 Subject: [PATCH] Added created_at to license pivot Signed-off-by: snipe --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } /**