Hi there. Is there a way to create two resource files with the same model or data table? I have a case with an users table and two companies. I want to give admin rights to the managers of each company but restrict the acces of other company. However, i want to give access to all the users to the super-admin user. Any sugestion is greatly appreciated.
Robert
I don't think it should be two resource files, I would just introduce multi-tenancy on Eloquent level, with Global Scopes, so Filament Resource would get already pre-filtered data from Eloquent, into the Resource.
Hi there. Is there a way to create two resource files with the same model or data table? I have a case with an users table and two companies. I want to give admin rights to the managers of each company but restrict the acces of other company. However, i want to give access to all the users to the super-admin user. Any sugestion is greatly appreciated. Robert
I don't think it should be two resource files, I would just introduce multi-tenancy on Eloquent level, with Global Scopes, so Filament Resource would get already pre-filtered data from Eloquent, into the Resource.
thanks, i will focus on multi tenancy