spatie/laravel-searchable

Add extra data to search result or conditional

thewebartisan7 opened this issue · 1 comments

Seem there is no way to override the search results by adding more data apart url and title, right?

In my specific case, the url could be in admin or frontend, and I have also body and picture.

Thanks

I see now that I can access whole model from $result->searchable
And for url, I could just build it conditionally from $result->searchable