1.在laravel查询中,我们需要查找两个字段相等的值,这种方法不行

代码片段
3 行
$data = DB::connection('mysql_branch')->table('branches') 
->where('is_usable',1) 
->whereRaw('money','amount')->get();

2.这种也不行

代码片段
3 行
$first_agent = DB::connection('mysql_branch')->table('branches') 
->where('is_usable',1) 
->whereRaw('money','=','amount')->get();

3.[b]需要这样查询[/b]

代码片段
3 行
$first_agent = DB::connection('mysql_branch')->table('branches') 
->where('is_usable',1) 
->whereRaw('money=amount')->get();