/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id, AdhesionG $adhesion, Request $request, Redirector $redirect) { // var_dump(Input::all()); // return 'update de la fiche '.$id; $adhesion = Adhesion::find($id); $adhesion->is_payed = Input::get('is_payed'); $adhesion->is_forced = Input::get('is_forced'); $adhesion->save(); return \Response::make('', 204); }
public function edit($id) { $adhesion = Adhesion::with(['personne', 'structure'])->find($id); $adhesion = $this->handleModelEdit($adhesion); // $adhesion = $this->completeModel($adhesion); return $adhesion; }