Implement tenant announcements and audit log fixes
This commit is contained in:
@@ -70,6 +70,17 @@ class Tenant extends Model
|
||||
return $this->hasMany(TenantPackage::class);
|
||||
}
|
||||
|
||||
public function announcements(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(TenantAnnouncement::class, 'tenant_announcement_targets')
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
public function announcementDeliveries(): HasMany
|
||||
{
|
||||
return $this->hasMany(TenantAnnouncementDelivery::class);
|
||||
}
|
||||
|
||||
public function packages(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Package::class, 'tenant_packages')
|
||||
|
||||
Reference in New Issue
Block a user