You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multitenancy enabled, and this breaks the plugin. I get the following error:
The model [TomatoPHP\FilamentAlerts\Models\NotificationsTemplate] does not have a relationship named [branch]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [TomatoPHP\FilamentAlerts\Filament\Resources\NotificationsTemplateResource] resource class.
How to reproduce the bug
Enable multitenancy with a custom Tenant model (Branch, in my case)
Package Version
2.2
PHP Version
8.4
Laravel Version
11.9
Which operating systems does with happen with?
macOS
Notes
I suppose the solution would be to allow creating a custom template model that extends the other one; then we can whitelist it from tenancy using the $isScopedToTenant property.
What happened?
I have multitenancy enabled, and this breaks the plugin. I get the following error:
The model [TomatoPHP\FilamentAlerts\Models\NotificationsTemplate] does not have a relationship named [branch]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [TomatoPHP\FilamentAlerts\Filament\Resources\NotificationsTemplateResource] resource class.
How to reproduce the bug
Enable multitenancy with a custom Tenant model (Branch, in my case)
Package Version
2.2
PHP Version
8.4
Laravel Version
11.9
Which operating systems does with happen with?
macOS
Notes
I suppose the solution would be to allow creating a custom template model that extends the other one; then we can whitelist it from tenancy using the
$isScopedToTenant
property.The text was updated successfully, but these errors were encountered: