ampersand
168
2
Nova

Laravel Nova as CRM: Filtering displayed data by logged-in user

Posted 1 month ago by ampersand

Hi,

I have this project where I need to develop a kind of CRM for a client using Laravel Nova.

Admins should be able to see data of every client and customers, but clients should only be able to see data of customers that belong to them.

How can I filter out resource tables to make sure that clients only see data of their customers and not those of other clients?

There is a way to extend the default Laravel Nova query depending on user group and/or roles? I didn't find anything about that on Nova's documentation site.

Thanks for the help!

Davide

Please sign in or create an account to participate in this conversation.