How to permanently filter table

I think my question is quite simple:

I have a table invoices that I'll link to a resource. but I want to filter the table so that the currently authenticated user can only see/edit/create invoices that are associated with him.

So this is not a filter that the user can control
Solution
Use the ->query() method on the $table instance. Here’s an example:
->query(MyModel::query()->orderBy('time', 'desc')->limit(100))
Was this page helpful?