コード例 #1
0
ファイル: BannerController.php プロジェクト: thaida/CMS
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id        	
  * @return Response
  */
 public function edit($id)
 {
     $film = $this->banner_gestion->getById($id);
     // $this->authorize('change', $post);
     $url = config('medias.url');
     $img_host_url = config('medias.image-host');
     return view('back.banner.edit', array_merge($this->banner_gestion->edit($film), compact('url'), compact('img_host_url')), $select = $this->sub_cat_gestion->getAllByFilmSelect());
 }
コード例 #2
0
ファイル: SubCatController.php プロジェクト: thaida/CMS
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id        	
  * @return Response
  */
 public function edit($id)
 {
     $post = $this->sub_cat_gestion->getById($id);
     // $this->authorize('change', $post);
     $url = config('medias.url');
     return view('back.subcat.edit', array_merge($this->sub_cat_gestion->edit($post), compact('url')), $select = $this->cat_gestion->getAllSelect());
 }