src/Controllers/PasswordController.php
public function resetPassword(Request $request)
    {
        $this->validate($request, [
            'password' => 'required|confirmed',
            'token'    => 'required'
       ]);

        $record= $this->resetPasswordRepo->where('token', $request['token']);
        $email = $record->first()->email;
        $record->delete();

        $user = $this->userRepo->where('email', $email)->update(['password' => $request['password']]);
        return redirect()->route('core::home');
    }
public function resetPassword(Request $request)
    {
        $this->validate($request, [
            'password' => 'required|confirmed',
            'token'    => 'required'
       ]);

        $record= $this->resetPasswordRepo->where('token', $request['token']);
        $email = $record->first()->email;
        $record->delete();

        $user = $this->userRepo->where('email', $email)->update(['password' => $request['password']]);
        return redirect()->route('core::home');
    }
public function resetPassword ( Request $ request ) { $ this -> validate ( $ request , [ 'password' => 'required|confirmed' , 'token' => 'required' ] ) ; $ record = $ this -> resetPasswordRepo -> where ( 'token' , $ request [ 'token' ] ) ; $ email = $ record -> first ( ) -> email ; $ record -> delete ( ) ; $ user = $ this -> userRepo -> where ( 'email' , $ email ) -> update ( [ 'password' => $ request [ 'password' ] ] ) ; return redirect ( ) -> route ( 'core::home' ) ; }
to save then new password

@return Response
to save then new password