public function update(ProfileUpdateRequest $request, $id)
    {
        $user = User::findOrFail($id);
        $user->fill($request->toArray())->save();
        $user->save();

        Session::put('_profile', trans('canvas::messages.update_success', ['entity' => 'Profile']));

        return redirect()->route('canvas.admin.profile.index');
    }
public function update(ProfileUpdateRequest $request, $id)
    {
        $user = User::findOrFail($id);
        $user->fill($request->toArray())->save();
        $user->save();

        Session::put('_profile', trans('canvas::messages.update_success', ['entity' => 'Profile']));

        return redirect()->route('canvas.admin.profile.index');
    }
public function update ( ProfileUpdateRequest $ request , $ id ) { $ user = User :: findOrFail ( $ id ) ; $ user -> fill ( $ request -> toArray ( ) ) -> save ( ) ; $ user -> save ( ) ; Session :: put ( '_profile' , trans ( 'canvas::messages.update_success' , [ 'entity' => 'Profile' ] ) ) ; return redirect ( ) -> route ( 'canvas.admin.profile.index' ) ; }
Update the user profile information.

@param ProfileUpdateRequest $request
@param $id

@return \Illuminate\Http\RedirectResponse
Update the user profile information .