Beispiel #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)
 {
     $block = $this->get($id);
     $block->update($request->all());
     return response()->json($block);
 }
Beispiel #2
0
 /**
  * @covers \Ohio\Content\Block\Http\Requests\UpdateRequest::rules
  */
 public function test()
 {
     $request = new UpdateRequest();
     $this->assertNotEmpty($request->rules());
 }