new Resource not working after setting up multi-tenancy..

I have a users table and organizations table. they have a many to many relationship and I setup multi-tenancy with the organizations table as a tenant.. I also have roles table that is related to users.. but when I try to setup a new resource for the roles.. I got this errors when I navigate to the page localhost/app/tenant/roles


The model [App\Models\Role] does not have a relationship named [organizations]. 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 [App\Filament\Resources\RoleResource] resource class.
Was this page helpful?