问题
How to disable searching for a resource with Scout without removing the Searchable trait from the resource model?
I want to deliberately bypass the Scout search inside Nova.
回答1:
Add this to your Nova Resource
public static function usesScout()
{
return false;
}
来源:https://stackoverflow.com/questions/53061448/laravel-nova-bypass-the-search-with-scout