public function resetUserConfig(UsersListener $listener, User $user)
    {
        try {
            $this->userConfigRepository->deleteByUserId($user->id);
            return $listener->resetSuccess();
        } catch (Exception $e) {
            Log::emergency($e->getMessage());
            return $listener->resetFailed();
        }
    }
public function resetUserConfig(UsersListener $listener, User $user)
    {
        try {
            $this->userConfigRepository->deleteByUserId($user->id);
            return $listener->resetSuccess();
        } catch (Exception $e) {
            Log::emergency($e->getMessage());
            return $listener->resetFailed();
        }
    }
public function resetUserConfig ( UsersListener $ listener , User $ user ) { try { $ this -> userConfigRepository -> deleteByUserId ( $ user -> id ) ; return $ listener -> resetSuccess ( ) ; } catch ( Exception $ e ) { Log :: emergency ( $ e -> getMessage ( ) ) ; return $ listener -> resetFailed ( ) ; } }
Reset configuration for given user for all providers. Response will be returned.

@param UsersListener $listener
@param User $user
@return \Illuminate\Http\RedirectResponse
Reset configuration for given user for all providers . Response will be returned .