src/User/Controllers/UserController.php
public function changePasswordUpdate(ChangePasswordRequest $request, User $user)
    {
        $password = $request->get('password');
        $user->update(['password' => bcrypt($password)]);
        Mail::to($user->email)->send(new ChangePasswordMail($user, $password));

        return redirect()->route('admin.user.index');
    }
public function changePasswordUpdate(ChangePasswordRequest $request, User $user)
    {
        $password = $request->get('password');
        $user->update(['password' => bcrypt($password)]);
        Mail::to($user->email)->send(new ChangePasswordMail($user, $password));

        return redirect()->route('admin.user.index');
    }
public function changePasswordUpdate ( ChangePasswordRequest $ request , User $ user ) { $ password = $ request -> get ( 'password' ) ; $ user -> update ( [ 'password' => bcrypt ( $ password ) ] ) ; Mail :: to ( $ user -> email ) -> send ( new ChangePasswordMail ( $ user , $ password ) ) ; return redirect ( ) -> route ( 'admin.user.index' ) ; }
Update the specified User Password in storage.

@param \AvoRed\Framework\User\Requests\ChnagePasswordRequest $request
@param \AvoRed\Framework\Models\Database\User $user

@return \Illuminate\Http\RedirectResponse
Update the specified User Password in storage .