예제 #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(UpdateAdresse $request)
 {
     $this->adresse->update($request->all());
     return redirect('profil');
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 /**
  * 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'));
 }