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