Пример #1
0
 public function updateAccount(UpdateAccountRequest $request, AppMailer $mailer)
 {
     $input = $request->all();
     $user = \Auth::user();
     $user->name = $input['name'];
     $user->password = $input['password'];
     $user->save();
     session()->flash("message", "Account Updated. Go ahead and create Reports!");
     $mailer->sendAccountUpdatedNotification($user);
     return redirect("/dashboard");
 }