Components\Posts\Controllers\Backend\PostCategoriesController::update PHP Метод

update() публичный Метод

Update the specified post category in storage.
public update ( integer $id ) : Response
$id integer
Результат Response
    public function update($id)
    {
        try {
            Category::findOrFail($id)->update(Input::all());
            return Redirect::to("backend/{$this->type}-categories")->with('success_message', trans('success_messages.post_cat_update'));
        } catch (ValidationException $e) {
            return Redirect::back()->withInput()->withErrors($e->getErrors());
        }
    }