How to disable global search for resource?
Hi guys, this is my
UserResource
. I am trying to disable global search just for this resource. What am I doing wrong?8 Replies
Please share the code, not an image
Yeah, sorry, it was too long. I deleted form method.
it should disable global search
I was thinking that, but I can still search for users. Maybe something I defined at bottom of my snippet?
I tried
php artisan filament:optimize-clear
, but still got results from global search.
Oh, I figured out. I had defined getGloballySearchableAttributes.ahh I think
getGlobalSearchResultTitle
and getGloballySearchableAttributes
will also apply the global searchYeah, I just need to pass empty array to searchable attributes and it will disable global search. Thank you Leandro. 🙂