Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id        	
  * @return Response
  */
 public function destroy($id)
 {
     $post = $this->sub_cat_gestion->getById($id);
     // $this->authorize('change', $post);
     $this->sub_cat_gestion->destroy($post);
     return redirect('subcat')->with('ok', trans('back/cat.destroyed'));
 }
Example #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id        	
  * @return Response
  */
 public function destroy($id)
 {
     $film = $this->banner_gestion->getById($id);
     // $this->authorize('change', $post);
     $this->banner_gestion->destroy($film);
     return redirect('banner')->with('ok', trans('back/banner.destroyed'));
 }