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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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