Пример #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();
 }