You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there I need to get search results from 2 table products and categories with eager loading relationship (category, product).
the relationship category is with products and the product is with categories.
don't no what is the use of active method. and don't know how it getting my search query as in this example there is a search function which is working fine but need eager loading relationship but not in the above one.
$searchResults = (new Search())
->registerModel(User::class, 'first_name', 'last_name')
->search('john');
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there I need to get search results from 2 table products and categories with eager loading relationship (category, product).
the relationship category is with products and the product is with categories.
don't no what is the use of active method. and don't know how it getting my search query as in this example there is a search function which is working fine but need eager loading relationship but not in the above one.
the result is get after the first code is
will be thankful if some help me.
Beta Was this translation helpful? Give feedback.
All reactions