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...)
15 Replies
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?
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.
True, that is tenancy, all pages are for all tenants the same
You want panels
Thats not what multi tenancy is. You should create multiple panels.
Haha, well you heard it twice.
But would it be possible to create multiple panels using the same domain?
i have applications with 4 panels
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!
excellent, I want that too
there can be multiple panels for the same domain, and only gicve access to certain teans
if you want that, start reding the documentation : https://filamentphp.com/docs/3.x/panels/getting-started
And for panels : https://filamentphp.com/docs/3.x/panels/configuration
that's exactly what I need
and here
https://filamentphp.com/plugins/shane-rosenthal-panel-roles
https://filamentphp.com/plugins/bezhansalleh-panel-switch
https://filamentphp.com/plugins/jeffgreco-breezy
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
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.
Thanks for the help guys, I'll get it here @cvc @Tieme @Tim van Heugten
most importantly understand the concept of multitenancy! https://filamentphp.com/docs/3.x/panels/tenancy
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...