F
Filamentβ€’9mo ago
MikeG

Making filament environment specific

I am completely new to Filament, and trying to learn how to use it for my own purpose. Which resources do I need to tap in to to understand how to make Filament work with the global scope of which "project" you have selected. Lets say there can be many "projects" you create through Filament. I guess the Project would be a filament-resource in this situation. Now you can select which project your currently working on, and only when you have a project selected, the resources appear on the navigation, all scoped to that project ID. Again, very new here, just looking for some guidance on which resources I need to learn more about to achieve that. I think I can make a dropdown box project selector based on one of the plugin's code but adapting it for my usecase (https://github.com/pxlrbt/filament-environment-indicator) Im confused on how to learn to get the rest of the above working
Solution:
I think i've figured it out.. Add a column on the user level for 'current_selected_project_id', then adding global scope to the modals on said project ID, and using conditional navigation to show and hide based on if that ID is set on the user πŸ™‚
Jump to solution
2 Replies
MikeG
MikeGβ€’9mo ago
Just to add upon that, I assume it would be some adaptation of how the multi-tenant system works as listed on the Panel documentation
Solution
MikeG
MikeGβ€’9mo ago
I think i've figured it out.. Add a column on the user level for 'current_selected_project_id', then adding global scope to the modals on said project ID, and using conditional navigation to show and hide based on if that ID is set on the user πŸ™‚
Want results from more Discord servers?
Add your server
More Posts