/**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return \Illuminate\Http\Response
  */
 public function destroy(int $id)
 {
     $category = $this->category->where('id', '=', $id)->first();
     $category->delete();
     $this->webUi->successMessage("Deleted category `{$category->name}`.");
     return $this->webUi->redirect('categories.index');
 }