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