public function index($form = null)
    {
        $areaProviders = $this->twoFactorProvidersService->getAreaProvidersCollection();
        if (is_null($form)) {
            $provider = app(Provider::class)->where('name', 'google2fa')->where('area', area())->first();

            $provider->setProviderGateway($this->twoFactorProvidersService->getProviderGatewayByName($provider->name));
            $form = $this->presenter->form($provider);
        }

        return $this->presenter->index($areaProviders, $form);
    }
public function index($form = null)
    {
        $areaProviders = $this->twoFactorProvidersService->getAreaProvidersCollection();
        if (is_null($form)) {
            $provider = app(Provider::class)->where('name', 'google2fa')->where('area', area())->first();

            $provider->setProviderGateway($this->twoFactorProvidersService->getProviderGatewayByName($provider->name));
            $form = $this->presenter->form($provider);
        }

        return $this->presenter->index($areaProviders, $form);
    }
public function index ( $ form = null ) { $ areaProviders = $ this -> twoFactorProvidersService -> getAreaProvidersCollection ( ) ; if ( is_null ( $ form ) ) { $ provider = app ( Provider :: class ) -> where ( 'name' , 'google2fa' ) -> where ( 'area' , area ( ) ) -> first ( ) ; $ provider -> setProviderGateway ( $ this -> twoFactorProvidersService -> getProviderGatewayByName ( $ provider -> name ) ) ; $ form = $ this -> presenter -> form ( $ provider ) ; } return $ this -> presenter -> index ( $ areaProviders , $ form ) ; }
Return a View object based on Presenter.

@return \Illuminate\View\View
Return a View object based on Presenter .