我想将以下查询转换为Laravel ORM
$sql = "SELECT * FROM snippets WHERE MATCH(snippets_name,seo_description,snippets_description,snippet_tags)
AGAINST (' ".$query."' IN BOOLEAN MODE) LIMIT " . $start . "," . $limit;
我尝试了以下代码
但是没有得到想要的结果
$searchdata = DB::table('snippets')
->selectRaw("*")
->whereRaw("MATCH(snippets_name,seo_description,snippets_description,snippet_tags) AGAINST (' ".$query."' IN BOOLEAN MODE)")
->paginate(20);