is it possible to make a filament resource based on scope ?
I am curious to know if it is possible to create different resources based on one model's scopes.
For example, I have a
Listing
model with a type
scope. Can I create a GameListingResource
for Listing
s with a type of Game
, and a GiftCardResource
for Listing
s with a type of GiftCard
?
If yes, how can I do that?
If no, any suggestions would be appreciated.Solution:Jump to solution
Sure multiple resources can be created for the same model (as long as you set different slug)
3 Replies