示例#1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  Requests\UpdateRequest $request
  * @param  string $id
  *
  * @return \Illuminate\Http\Response
  */
 public function update(Requests\UpdateRequest $request, $id)
 {
     $handle = $this->get($id);
     $handle->update($request->all());
     return response()->json($handle);
 }
示例#2
0
 /**
  * @covers \Ohio\Content\Handle\Http\Requests\UpdateRequest::rules
  */
 public function test()
 {
     $request = new UpdateRequest();
     $this->assertNotEmpty($request->rules());
 }