Correct assignedusers relation setting

This commit is contained in:
Phan Nguyen
2022-10-17 13:10:09 +07:00
committed by GitHub
parent b7bcfaccc9
commit e457b2e98d
+1 -1
View File
@@ -357,7 +357,7 @@ class License extends Depreciable
*/
public function assignedusers()
{
return $this->belongsToMany(\App\Models\User::class, 'license_seats', 'assigned_to', 'license_id');
return $this->belongsToMany(\App\Models\User::class, 'license_seats', 'license_id', 'assigned_to');
}
/**