public function edit($id) { $category = $this->repository->find($id); return view('admin.cupoms.edit', compact('cupom')); }