예제 #1
0
 /**
  * Update "active" for the specified resource in storage.
  *
  * @param  Illuminate\Http\Request $request
  * @param  int  $id
  * @return Response
  */
 public function updateActive(Request $request, $id)
 {
     $post = $this->blog_gestion->getById($id);
     $this->authorize('change', $post);
     $this->blog_gestion->updateActive($request->all(), $id);
     return response()->json();
 }
예제 #2
0
 /**
  * Update "active" for the specified resource in storage.
  *
  * @param  Illuminate\Http\Request $request
  * @param  int  $id
  * @return Response
  */
 public function updateActive(Request $request, $id)
 {
     $this->blog_gestion->updateActive($request->all(), $id);
     return response()->json();
 }