/**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $vld = InformationDevice::validate(\Input::all());
     if ($vld->passes()) {
         $informationdevices = new InformationDevice(\Input::all());
         $informationdevices->save();
         return json_encode($informationdevices);
     }
     return json_encode(array("Error" => $vld->messages()));
 }