如何应用此条件
$where = "id={$get->id} or ref_id={$get->ref_id}";
到 DB::table ?
也许像
DB::table("transaction")->where("id",$get->id)->or("ref_id",$get->ref_id);
您可以使用此orWhere
:
DB::table("transaction")->where("id",$get->id)->orWhere("ref_id",$get->ref_id);
谢谢。。!