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());
}
}