/**
  * Remove the specified Category from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $category = $this->conceptocategoryRepository->find($id);
     if (empty($category)) {
         Flash::error('Category not found');
         return redirect(route('conceptos.categorias.index'));
     }
     $this->conceptocategoryRepository->delete($id);
     Flash::success('Category deleted successfully.');
     return redirect(route('conceptos.categorias.index'));
 }
 public function edit($id)
 {
     $client = $this->repository->find($id);
     return view('admin.clients.edit', compact('client'));
 }
 public function edit($id)
 {
     $client = $this->repository->find($id);
     $users = $this->repository_user->lists();
     return view('admin.clients.edit', compact('client', 'users'));
 }
 public function edit($id)
 {
     $cupom = $this->repository->find($id);
     return view('admin.cupoms.edit', compact('cupom'));
 }
Exemple #5
0
 /**
  * @return RouteEntity
  */
 public function getCategoryEntity()
 {
     return $this->key ? $this->categoryRepository->find($this->key) : NULL;
 }