SoraKeyheart
SoraKeyheart
FFilament
Created by SoraKeyheart on 11/18/2024 in #❓┊help
Combining Relation Manager table with Parent table
I have the parent resource VehicleMakeResoure and the relation manager VehicleModelsRelationManager. It is working as expected. But how do I show the Vehicle models within the Vehicle Make table as groups? Example: https://live.datatables.net/nitemova/1/
2 replies
FFilament
Created by SoraKeyheart on 8/28/2024 in #❓┊help
Tenancy - 3 levels: Super Admin, company, client
I need your kind assistance to direct me to the best solution for below. I currently have 2 panels: 'admin' and 'company'. The result I want to achieve is: - admin is the SaaS owner, where they manage the 'company' Tenant and its clients. - company is the main tenant where they can add 'client' as a team. What I did so far: I left the admin panel as is without adding Tenancy options. I did the tenancy setup under Company panel. Scenario: A company named Safe has decided to subscribe with the SaaS. Safe is a safety company that provides safety services to different clients/locations. Safe should have the ability to create a team/tenant under their account (uses the Company panel) and can manage their accounts. Safe passes a dashboard/account to their client (e.g. NOKIA factory). NOKIA factory have their dashboard with their own resources, widgets and pages.
6 replies
FFilament
Created by SoraKeyheart on 1/21/2024 in #❓┊help
Widget blade, white screen
No description
11 replies
FFilament
Created by SoraKeyheart on 8/24/2023 in #❓┊help
Is it possible to share resources, pages and widgets across panels?
Since now we can have multiple panels, and each panel uses:
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
Is there a way to share resources among panels? Example: Sales & customer support should be able use SalesResource and OrdersWidget. If no such thing is possible. I'd like to collaborate on adding this feature.
23 replies
FFilament
Created by SoraKeyheart on 8/17/2023 in #❓┊help
The Big Tenants & Panels & Roles Question
I asked this in the github discussion, and read across almost all tenant and panel related topics but I still need assistance. How does this work? I have trouble structuring the application! I can create custom panels? Great, here is a theoretical senario: I have 3 panels: - Admin (Sees everything) - Sales department (sees their things only, maybe can create teams). - Finance department (same as Sales). So, who is the tenant? And when the sales creates a team, what's the team for? When I create teams and switch among them, I see only "Settings" page as the demo shows. Whats the point of teams? What is it used for? Is it just another way of "Roles and permissions"? What about panels? Each department has their own, but all can access each other's.. canAccessPanel doc and examples are very limited so idk. Enough of questions, here what I need to do: Me, the App owner. Where I keep all peoples' secrets in my DB (haha). Corporate (Tenant, the one who subscribed to the SaaS. Can create teams aka departments, and each team have their own dashboard with their own resources). OR, instead of department, you can say "Project", a client for our client/Tenant. Where each "project" have their own reaources based on Tenant membership. Resources (some must be shared among panels). I am currently working on a complex ecosystem where I will use Artisan::call along with Form builder UI to allow users (Admins or tenants) to create resources, models and migrations thought the front-end instead of the Terminal. Then assign these resources to the required Dashboard/Panel. Of course each have their own DB so this won't be an issue with data structure. As for the Roles, it's already solved by the Shield plugin. Now for the users, I as an admin can see ALL the users but the tenant should only see and create theirs. The documentation of Tenancy setup for v3 is very very limited so I guess we should work on improving it. So...how do Panels and Tenants work together?
3 replies
FFilament
Created by SoraKeyheart on 5/9/2023 in #❓┊help
Stancl Tenancy
Related to: https://discord.com/channels/883083792112300104/1103784306461134950 Everything is setup and ready, I'm going with the single database approach and subdomain. I only have 1 issue: When I visit both localhost/admin and sub.localhost/admin to login to filament using the same filament-user, it logs in. When I create a user without the filament-user command, aka factory and try to login (the user has relationship with tenant_id) I get credentials error. How can I make each subdomain (tenant) have it's own filament users? Note: When I dd() users , it's shows the correct users of each tenant.
1 replies