Multitenancy Support for Filament 3.x #88
Replies: 1 comment
-
Ah nevermind, I updated the config/filament-fabricator.php variable 'page-model' to refer to the Page model I created and it worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the introduction of Multi-tenancy in Filament 3.x I have setup the multi-tenancy in my project but having issues when accessing /pages or any filament-fabricator urls
Below is what I am getting:
The model [Z3d0X\FilamentFabricator\Models\Page] does not have a relationship named [website]. 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 [Z3d0X\FilamentFabricator\Resources\PageResource] resource class.
I need to define a relationship named website() on the Z3d0X\FilamentFabricator\Models\Page or a static property on Z3d0X\FilamentFabricator\Resources\PageResource
To achieve this I tried extending Page model into my project's Models\Page.php but its not taking any precedence, probably something I am doing wrong here?
Or any better way I can implement multi-tenancy support in the filament-fabricator package? Happy to code and submit a PR.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions