public function update(ConfigurationListener $listener, array $input)
    {
        try {
            $this->providersRepository->update($input);
            $msg = trans('antares/two_factor_auth::configuration.responses.update.success');

            return $listener->updateSuccess($msg);
        } catch (Exception $e) {
            Log::emergency($e);

            $msg = trans('antares/two_factor_auth::configuration.responses.update.fail');
            return $listener->updateFailed($msg);
        }
    }
public function update(ConfigurationListener $listener, array $input)
    {
        try {
            $this->providersRepository->update($input);
            $msg = trans('antares/two_factor_auth::configuration.responses.update.success');

            return $listener->updateSuccess($msg);
        } catch (Exception $e) {
            Log::emergency($e);

            $msg = trans('antares/two_factor_auth::configuration.responses.update.fail');
            return $listener->updateFailed($msg);
        }
    }
public function update ( ConfigurationListener $ listener , array $ input ) { try { $ this -> providersRepository -> update ( $ input ) ; $ msg = trans ( 'antares/two_factor_auth::configuration.responses.update.success' ) ; return $ listener -> updateSuccess ( $ msg ) ; } catch ( Exception $ e ) { Log :: emergency ( $ e ) ; $ msg = trans ( 'antares/two_factor_auth::configuration.responses.update.fail' ) ; return $ listener -> updateFailed ( $ msg ) ; } }
Update a configuration. The provider will be marked as enabled. Response will be returned.

@param ConfigurationListener $listener
@param array $input
@return mixed
Update a configuration . The provider will be marked as enabled . Response will be returned .