course  id = record  cid, uid id
,
 foreach  , 
 
the code is as follows
$course = DB::table("course")->get();
foreach ($course as $key => $value) {
    $value->recording = DB::table("record")->where("cid", $value->id)->get();
}
 I would like to ask how to implement an ordinary relational query without using  Eloquent ORM  (I use  laravel version 5.1 ) 
Please give me some advice. Thank you very much
