We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528db18 commit b9268daCopy full SHA for b9268da
app/Spotlight/Sujet.php
@@ -36,10 +36,9 @@ public function searchThread($query)
36
return Thread::where('title', 'like', "%$query%")
37
->get()
38
->map(function (Thread $thread) {
39
- // You must map your search result into SpotlightSearchResult objects
40
return new SpotlightSearchResult(
41
$thread->slug(),
42
- $thread->name,
+ $thread->title,
43
sprintf('par @%s', $thread->author->username)
44
);
45
});
0 commit comments