TitasGailius / nova-search-relations

This package allow you to include relationship columns into Laravel Nova search query.
Other
353 stars 33 forks source link

Separate global search options #7

Closed dillingham closed 5 years ago

dillingham commented 6 years ago

Nova: 1.2.9 Laravel 5.7

Description

I find that the options I'd like to search above the table are different than those of global.

For instance, a resource may have a user relation. That relation appears on the table. A person searching would see that user's name & expect the table search to return it That's what makes this package awesome!

However, if I search that user in global search, I don't want to see that resource.

Solution

I would love $globalSearchRelations & $searchRelations separated

Non breaking:

if(isset($globalSearchRelations) == false) 
    $globalSearchRelations = $searchRelations;
TitasGailius commented 5 years ago

Implemented something like this in 1.0.4 release. https://github.com/TitasGailius/nova-search-relations/commit/1e7408a678b9258537cb15ceb58a56016501243a

dillingham commented 5 years ago

Sorry! Thank you!