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? (31 h 16 min)

You also get:

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

Already a member? Login here

Comments & Discussion

R
RobertT ✓ Link copied!

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

PK
Povilas Korop ✓ Link copied!

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.

R
RobertT ✓ Link copied!

thanks, i will focus on multi tenancy