public function destroy($id)
    {
        try {
            $this->repository->delete($id);

            return $this->redirect('categories.index');
        } catch (ModelNotFoundException $e) {
            return $this->redirectNotFound();
        }
    }
public function destroy($id)
    {
        try {
            $this->repository->delete($id);

            return $this->redirect('categories.index');
        } catch (ModelNotFoundException $e) {
            return $this->redirectNotFound();
        }
    }
public function destroy ( $ id ) { try { $ this -> repository -> delete ( $ id ) ; return $ this -> redirect ( 'categories.index' ) ; } catch ( ModelNotFoundException $ e ) { return $ this -> redirectNotFound ( ) ; } }
Remove the specified category from storage.

@param int $id

@return Response
Remove the specified category from storage .