SpatieMediaLibraryPlugin with getTableQuery()

Hello all,
I am using SpatieMediaLibraryPlugin for media collections.

I have a user model where admin's can hold PDF, Word or Excel documents for a specific user.
I want to show these files on a table but could not find how I can query the Media class in getTableQuery() function.

Does anyone know a trick for it?

Thanks.
Was this page helpful?