/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateAdresse $request) { $this->adresse->update($request->all()); return redirect('profil'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id, UpdateAdresse $request) { $adresse = $this->adresse->update($request->all()); return redirect('adresse/' . $id); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id, UpdateAdresse $request) { $adresse = $this->adresse->update($request->all()); $url = $adresse->user_id > 0 ? 'user/' . $adresse->user_id : 'adresse/' . $adresse->id; return redirect('admin/' . $url)->with(array('status' => 'success', 'message' => 'Adresse mise à jour')); }