'Référent', 'me' => $me]); } /** * updateUser an user in database. * * */ public function update() { $idUser = Input::get('idUser'); $user = User::find($idUser); if (Request::hasFile('file')) { Request::file('file')->move("./pictures/user_picture/", $idUser); $user->image = "pictures/user_picture/".$idUser; } $user->firstname = Input::get('firstname'); $user->email = Input::get('email'); $user->city = Input::get('city'); $user->lastname = Input::get('lastname'); $user->save(); return redirect('/referent')->with('message_update', 'Referent mis à jour avec succès'); } }