/**
  * Update the specified resource in storage.
  *
  * @param Requests\RoomRequest|Request $request
  * @param Room $room
  * @return \Illuminate\Http\Response
  */
 public function update(Requests\RoomRequest $request, Room $room)
 {
     $room->update($request->only(['name', 'activeduration', 'tempsensorpath', 'relaispath', 'temperature']));
     return $room->fresh(['timeslots']);
 }