Exemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     ITP::where('ID', $id)->update($request->except(['_method', '_token']));
     $json['header'] = "Updated";
     $json['message'] = "The record was updated in the database";
     return json_encode($json);
 }