Ejemplo n.º 1
0
 /**
  * Remove the specified StickerStore from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $stickerStore = $this->stickerStoreRepository->find($id);
     if (empty($stickerStore)) {
         Flash::error('StickerStore not found');
         return redirect(route('stickerStores.index'));
     }
     $this->stickerStoreRepository->delete($id);
     Flash::success('StickerStore deleted successfully.');
     return redirect(route('stickerStores.index'));
 }
 /**
  * Remove the specified StickerStore from storage.
  * DELETE /stickerStores/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->stickerStoreRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "StickerStore deleted successfully");
 }