affiliations

This commit is contained in:
ghassan committed 2026-01-27 16:34:46 +03:00
1 parent 4f3f9c9aad
commit 0b5b3dd3ee
177 files changed
+9660 -8531

No files matched your search

+9
View File
@@ -27,6 +27,7 @@ class ClubMemberSubscription extends Model
protected $fillable = [
'tenant_id',
'user_id',
'club_affiliation_id',
'package_id',
'start_date',
'end_date',
@@ -73,6 +74,14 @@ class ClubMemberSubscription extends Model
return $this->belongsTo(ClubPackage::class, 'package_id');
}
/**
* Get the club affiliation associated with the subscription.
*/
public function clubAffiliation(): BelongsTo
{
return $this->belongsTo(ClubAffiliation::class, 'club_affiliation_id');
}
/**
* Get the transactions for the subscription.
*/