Skip to main content

Modal Forms with Simple Resources

Premium
2:52

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

RobertT avatar

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

Povilas Korop avatar

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.

RobertT avatar

thanks, i will focus on multi tenancy