auth()->user(), ]); } /** * Update the specified resource in storage. * * @param \Modules\User\Http\Requests\UpdateProfileRequest $request * @return \Illuminate\Http\Response */ public function update(UpdateProfileRequest $request) { $request->bcryptPassword($request); auth()->user()->update($request->all()); return back()->with('success', trans('account::messages.profile_updated')); } }