0

在此处输入图像描述

Verse::where('text','Like','ٱللَّهِ')->get()

我尝试了一个包,但它对我没有用

 $mode="1";
    $Arabic = new Arabic();
    $Arabic->setQueryStrFields('text');
    $Arabic->setQueryMode($mode);
    $keyword = str_replace('\"', '"', $string);
    $strCondition = $Arabic->arQueryWhereCondition($keyword);
    $strOrderBy   = $Arabic->arQueryOrderBy($keyword);
    $result=DB::table('verses')->select(DB::raw('text',$strCondition,$strOrderBy))->limit(10)->get();

我有这样的数据库,我想使用 laravel 搜索特定的字符串但得到空结果,请给我一个建议来处理这个我正在使用 laravel 8

4

0 回答 0