как можно сделать это в laravel с eloquent и db
SELECT thread.threadid, MATCH(thread.title) AGAINST ('title_seatch_word') AS score
FROM thread AS thread
WHERE MATCH(thread.title) AGAINST ('title_seatch_word')
AND thread.open <> 10
" . iif($threadid, " AND thread.threadid <> $threadid") . "
LIMIT 5
я поднос это
Thread::whereRaw('MATCH (`title`) AGAINST (?)', ['title_search_word'])
->where('open', '<>', 10)
->when(isset($threadid), function ($query) {return $query->where('threadid', '<>', $threadid);})
->take(5)
->get();
поставить я не могу написать это
SELECT thread.threadid, MATCH(thread.title) AGAINST ('title_seatch_word') AS score
так что яхочу завершить запрос