Laravel DB::table中的OR语句?

Laravel DB::table中的OR语句?,laravel,Laravel,如何应用此条件 $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); 您可以使用此或where: DB::table("transaction")->where("id",$get->id)->orWhere

如何应用此条件

$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);

您可以使用此
或where

 DB::table("transaction")->where("id",$get->id)->orWhere("ref_id",$get->ref_id);
谢谢