/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $post = $this->cat_gestion->getById($id); //$this->authorize('change', $post); $url = config('medias.url'); return view('back.cat.edit', array_merge($this->cat_gestion->edit($post), compact('url'))); }
public function getDetails(CategoryRepository $category_gestion, $id) { $url = config('medias.url'); $data = $this->category_gestion->edit($id); return view('admin.category.details', compact('data', 'url')); }