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
I tried this but not working
whole code
Solution
Solved:
instead I add this to the table
instead I add this to the table
->modifyQueryUsing(fn (Builder $query) => $query->where('role','!=', Role::Customer->value))