コード例 #1
0
ファイル: CatController.php プロジェクト: thaida/CMS
 /**
  * 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')));
 }
コード例 #2
0
ファイル: CategoryController.php プロジェクト: udayc/travel
 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'));
 }