F
Filament6mo ago
myster

I need help with Multi tenancy

I need to be able to hide a page in different 'teams'. As in the example in the image, I would like the products page to be visible only in the dashboard and not in integrations. There is no need to filter if the user is admin or anything like that, I just want the page to be displayed according to 'teams' (dashboard, integrations...)
No description
No description
15 Replies
Tieme
Tieme6mo ago
Please dont ask same question multiple times. If you have read the https://discord.com/channels/883083792112300104/1167015843020943390 than a propper question needs code of your problem. What is the panel code What is the page code Hoe did you setup this? What did you try, what whas the outcome?
myster
myster6mo ago
I closed another question I asked yesterday, I didn't get any response so I sent it again. I followed the step by step to apply multi tenacy https://filamentphp.com/docs/3.x/panels/tenancy#overview I did a test and created 2 'teams' (dashboard and integration) but I noticed that the same page is visible for both teams. My intention is for each team to have different pages. In this example: Dashboard -: page 1 -: Page 2 Integrations -: Page 3 -: Page 4 Each page is understood as a resource.
Tieme
Tieme6mo ago
True, that is tenancy, all pages are for all tenants the same You want panels
Tim van Heugten
Tim van Heugten6mo ago
Thats not what multi tenancy is. You should create multiple panels. Haha, well you heard it twice.
myster
myster6mo ago
But would it be possible to create multiple panels using the same domain?
Tieme
Tieme6mo ago
i have applications with 4 panels
nostrodamned
nostrodamned6mo ago
yes - you restrict access using roles of some description - have a look at breezy or similar - and have a read of the documentation - the answers are there!
myster
myster6mo ago
excellent, I want that too
nostrodamned
nostrodamned6mo ago
there can be multiple panels for the same domain, and only gicve access to certain teans
myster
myster6mo ago
that's exactly what I need
nostrodamned
nostrodamned6mo ago
Filament
Panel Roles by Shane D Rosenthal - Filament
Filament Panel Roles is an intuitive way to ensure all users of a specified panel within Filament v3 is assigned a role during registration and has a specified role using Laravel Middleware.
Filament
Panel Switch by Bezhan Salleh - Filament
Easily switch between panels in Filament.
Filament
Breezy by Jeff Greco - Filament
The top Two Factor Authentication package for Filament with customizable and extendable My Profile page, self-service update password, avatar support, and Sanctum token management.
myster
myster6mo ago
Thanks for the help guys, I'll get it here @cvc @Tieme @Tim van Heugten
nostrodamned
nostrodamned6mo ago
myster
myster6mo ago
It worked guys!! Your help was essential! For those who visit this chat, I also advise you to watch this video: https://www.youtube.com/watch?v=weL24ENTZ3w&list=PL6tf8fRbavl3jfL67gVOE9rF0jG5bNTMi&index=18
Code With Tony
YouTube
18 Authentication Features - FilamentPHP V3 Tutorial
Laravel Filament authentication features allow to register, login and edit the profile. Laravel Filament is a powerful admin panel framework for Laravel that makes it easy to create custom admin panels for your applications. In Filament 3, the ability to create multiple panels was introduced. This allows you to create separate panels for differ...