Update relation key

This commit is contained in:
Benjamin Beganović 2024-11-20 12:18:59 +01:00
parent a7f578cf43
commit db69443ba1
1 changed files with 1 additions and 1 deletions

View File

@ -41,6 +41,6 @@ class EInvoicingToken extends Model
*/
public function license_relation(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(License::class, 'license_key', 'license_key');
return $this->belongsTo(License::class, 'license', 'license_key');
}
}