/** * 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); }
/** * @covers \Ohio\Content\Handle\Http\Requests\UpdateRequest::rules */ public function test() { $request = new UpdateRequest(); $this->assertNotEmpty($request->rules()); }