Components\ContactManager\Controllers\Backend\ContactCategoriesController::update PHP Метод

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

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