示例#1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Requests\CreateRequest $request
  *
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\CreateRequest $request)
 {
     $block = $this->block->create($request->all());
     return response()->json($block);
 }
示例#2
0
 /**
  * @covers \Ohio\Content\Block\Http\Requests\CreateRequest::rules
  */
 public function test()
 {
     $request = new CreateRequest();
     $this->assertNotEmpty($request->rules());
 }