/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @throws Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @return Response
  */
 public function destroy($id)
 {
     if (Category::destroy([$id])) {
         if ($this->request->ajax()) {
             return ['response' => 'success'];
         }
         return redirectTo('/' . Config::get(content . category_base));
     }
     throw new NotFoundHttpException();
 }