It happens I'm doing a query and still not have the field of condition (where ) and found that maybe you can do it this way
$results = DB::select(
DB::raw('select * from some_table WHERE some_id = ?'),
array($id)
);
var_dump($results);
But not how to use it, can someone explain me please?
$results = DB::table('some_table')->where('some_id', '=', 12)->get();$results = DB::table('some_table')->whereIn('some_id', '=', $idArray)->get();$results = DB::select(DB::raw('select * from some_table WHERE some_id = :someid'), array('someid' => $id)); var_dump($results);