How to exlclude user role (customer) in relation manager?
The case is want to exclude user customers in the list
I tried this but not working
whole code
Solution:Jump to solution
Solved:
instead I add this to the table
->modifyQueryUsing(fn (Builder $query) => $query->where('role','!=', Role::Customer->value))
...1 Reply
Solution
Solved:
instead I add this to the table
->modifyQueryUsing(fn (Builder $query) => $query->where('role','!=', Role::Customer->value))