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