Example #1
0
 public function testget()
 {
     $query = Level::with('calls')->where('id', 9);
     // $query->whereHas('calls',function($q){
     // 	$q->where('level_id',9);
     // });
     $data = $query->get();
     return Response::json($data);
 }