src/HtmlServiceProvider.php
protected function registerAccessHandler()
    {
        $this->app->singleton('access', function ($app) {
            $guard = $app['config']->get('html.guard', null);
            $handler = new BasicAccessHandler($app['auth']->guard($guard));

            $gate = $app->make(Gate::class);
            if ($gate) {
                $handler->setGate($gate);
            }

            return $handler;
        });

        $this->app->alias('access', AccessHandler::class);
    }
protected function registerAccessHandler()
    {
        $this->app->singleton('access', function ($app) {
            $guard = $app['config']->get('html.guard', null);
            $handler = new BasicAccessHandler($app['auth']->guard($guard));

            $gate = $app->make(Gate::class);
            if ($gate) {
                $handler->setGate($gate);
            }

            return $handler;
        });

        $this->app->alias('access', AccessHandler::class);
    }
protected function registerAccessHandler ( ) { $ this -> app -> singleton ( 'access' , function ( $ app ) { $ guard = $ app [ 'config' ] -> get ( 'html.guard' , null ) ; $ handler = new BasicAccessHandler ( $ app [ 'auth' ] -> guard ( $ guard ) ) ; $ gate = $ app -> make ( Gate :: class ) ; if ( $ gate ) { $ handler -> setGate ( $ gate ) ; } return $ handler ; } ) ; $ this -> app -> alias ( 'access' , AccessHandler :: class ) ; }
Register the AccessHandler implementation into the IoC Container.
This package provides a BasicAccessHandler.

@return \Styde\Html\Access\AccessHandler
Register the AccessHandler implementation into the IoC Container . This package provides a BasicAccessHandler .