public function getDrawing($id) { $drawing = Drawing::with('drawingObjects')->where('id', $id)->get(); return Response::json($drawing->toArray()); }