Replies: 1 comment
-
@mamprogr Thanks for sharing your code, I ended up doing something very similar. I have a strange situation though whereby the items are "nested" in the paginator, as the first element of its collection. So to loop over the results I have to do foreach ($results->first() as $result) While of course it would make more sense to have the resulting collection have all the results directly as its items: foreach ($results as result) { Have you encountered something similar? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I use attributesToHighlight Meilisearch feature with Laravel Scout?
I am able to get results in
_formatted
attribute when I do:But
_formatted
attribute disappears when I use pagination like:As a workaround, I'm using the following code to get the formatted content :
Beta Was this translation helpful? Give feedback.
All reactions