How to show a table with only records that belong to the authenticated user?
Hi, I'm building a sample Filament site to practice and learn. I'm stuck on how I can make a resource only show records that belong to the authenticated user. For example, in my
products
products
table, I have a
user_id
user_id
column. I only want to show records that match
user_id
user_id
with
auth()->user()->id
auth()->user()->id
in my Filament table.
Solution
An other, more localised option would be setting the resource query