Пример #1
0
 /**
  * Remove the specified Tax from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $tax = $this->taxRepository->find($id);
     if (empty($tax)) {
         Flash::error('Tax not found');
         return redirect(route('taxes.index'));
     }
     $this->taxRepository->delete($id);
     Flash::success('Tax deleted successfully.');
     return redirect(route('taxes.index'));
 }
 /**
  * Remove the specified Tax from storage.
  * DELETE /taxes/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->taxRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "Tax deleted successfully");
 }