Matheeus
Matheeus
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
It depends on your necessities, in my case the extreme level of complexity that this combo adds to the developing of every module/part of the application was not such as to justify its use. I opted for throwing out the multi-tenancy, by managing it at a server level using different laravel databases/envs, also because it's incompatible with many major Filament libraries like Shield (for permissions)
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
this made like pretty impossible to use many artisan commands
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
because every tenant has a database context and in the same time the modules have another context in context
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
I can only suggest that, in my experience, laravel-modules works poorly together with multi-tenancy, probably the modules library isn't really made for this approach, as it hands very bad to handle the "change of context"
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
Probably the best way to achieve this is by using Polymorphic relationships but I'm not sure
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
Unfortunately I didn't find any simple solution so I discarded the modular multi-tenant architecture. Seems there's a way to achieve it but I didn't try to implement it, it needs the Reflector class that scans the Model folder and dynamically gets the Model names, but seems to be an approach that is not recommended by many developers, because it affects the performance of the Laravel framework
15 replies
FFilament
Created by Matheeus on 10/5/2024 in #❓┊help
"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)
Any hint?
15 replies
FFilament
Created by Matheeus on 7/25/2024 in #❓┊help
How to force re-render/refresh of an Input?
@Marco Amendola
6 replies
FFilament
Created by Matheeus on 7/25/2024 in #❓┊help
How to force re-render/refresh of an Input?
is there any example? I can't really operate on the component (because i can't fork it) but only on the form or at least on the resource edit page
6 replies
FFilament
Created by Matheeus on 2/12/2024 in #❓┊help
How to add class to view page?
I don’t have the blade file. I need to push the CSS class via the Resource
5 replies
FFilament
Created by El_Pollo_Frito on 9/17/2023 in #❓┊help
Hello. Are there any figma files for filament v3?
Hello, I'm following this: I need this too
4 replies
FFilament
Created by Matheeus on 9/15/2023 in #❓┊help
Tailwind dark:hidden doesn't work
is there any tutorial about how to build it against my views?
9 replies
FFilament
Created by Matheeus on 9/15/2023 in #❓┊help
Tailwind dark:hidden doesn't work
What I want to achieve is to hide something when dark mode is enabled, but it seems like the dark:[propriety] classes of Tailwind doesn't work in Filament, it's strange
9 replies
FFilament
Created by Matheeus on 9/15/2023 in #❓┊help
Tailwind dark:hidden doesn't work
Nope, I get the logo from Laravel public storage. The classes are present when I inspect code on browser, but seems doesn't have any effect Both images displays
9 replies