src/HtmlServiceProvider.php
protected function registerAlertContainer()
    {
        $this->app->singleton('alert', function ($app) {
            $this->loadConfigurationOptions();

            $alert = new Alert(
                $this->getAlertHandler(),
                $this->getTheme()
            );

            if ($this->options['translate_texts']) {
                $alert->setLang($app['translator']);
            }

            return $alert;
        });

        $this->app->alias('alert', Alert::class);
    }
protected function registerAlertContainer()
    {
        $this->app->singleton('alert', function ($app) {
            $this->loadConfigurationOptions();

            $alert = new Alert(
                $this->getAlertHandler(),
                $this->getTheme()
            );

            if ($this->options['translate_texts']) {
                $alert->setLang($app['translator']);
            }

            return $alert;
        });

        $this->app->alias('alert', Alert::class);
    }
protected function registerAlertContainer ( ) { $ this -> app -> singleton ( 'alert' , function ( $ app ) { $ this -> loadConfigurationOptions ( ) ; $ alert = new Alert ( $ this -> getAlertHandler ( ) , $ this -> getTheme ( ) ) ; if ( $ this -> options [ 'translate_texts' ] ) { $ alert -> setLang ( $ app [ 'translator' ] ) ; } return $ alert ; } ) ; $ this -> app -> alias ( 'alert' , Alert :: class ) ; }
Register the Alert Container instance
Register the Alert Container instance