/** * Register the Alert Container instance */ protected function registerAlertContainer() { $this->app->bindShared('alert', function ($app) { $this->loadConfigurationOptions(); $alert = new Alert($this->getAlertHandler(), $this->getTheme()); if ($this->options['translate_texts']) { $alert->setLang($app['translator']); } return $alert; }); }
/** * Add an additional view partial to the alert message. * * @param string $template * @param array $data * @return \Styde\Html\Alert\Message $this */ public function view($template, $data = array()) { return $this->html($this->container->view($template, $data)); }
public function render() { return $this->container->render(); }
/** * Clear and render the alert messages of this and the previous requests. * * @param string|null $custom * @return string * @static */ public static function render($custom = null) { return \Styde\Html\Alert\Container::render($custom); }