public function putUpdate(Request $request, $id) {
    $this->validate($request, isset($this->vocabulary->rules_create) ? $this->vocabulary->rules_create : $this->vocabulary->rules);

    $vocabulary = $this->vocabulary->findOrFail($id);
    $vocabulary->update(Input::only('name'));

    return Redirect::to(action('\Devfactory\Taxonomy\Controllers\TaxonomyController@getIndex'))->with('success', 'Updated');

  }
public function putUpdate(Request $request, $id) {
    $this->validate($request, isset($this->vocabulary->rules_create) ? $this->vocabulary->rules_create : $this->vocabulary->rules);

    $vocabulary = $this->vocabulary->findOrFail($id);
    $vocabulary->update(Input::only('name'));

    return Redirect::to(action('\Devfactory\Taxonomy\Controllers\TaxonomyController@getIndex'))->with('success', 'Updated');

  }
public function putUpdate ( Request $ request , $ id ) { $ this -> validate ( $ request , isset ( $ this -> vocabulary -> rules_create ) ? $ this -> vocabulary -> rules_create : $ this -> vocabulary -> rules ) ; $ vocabulary = $ this -> vocabulary -> findOrFail ( $ id ) ; $ vocabulary -> update ( Input :: only ( 'name' ) ) ; return Redirect :: to ( action ( '\Devfactory\Taxonomy\Controllers\TaxonomyController@getIndex' ) ) -> with ( 'success' , 'Updated' ) ; }
Update a resource.

@return Response
Update a resource .