src/Toastr.php
public function render(): string
    {
        $toastr = '<script type="text/javascript">'.$this->options().$this->notificationsAsString().'</script>';

        $this->session->forget(self::TOASTR_NOTIFICATIONS);

        return $toastr;
    }
public function render(): string
    {
        $toastr = '<script type="text/javascript">'.$this->options().$this->notificationsAsString().'</script>';

        $this->session->forget(self::TOASTR_NOTIFICATIONS);

        return $toastr;
    }
public function render ( ) : string { $ toastr = '<script type="text/javascript">' . $ this -> options ( ) . $ this -> notificationsAsString ( ) . '</script>' ; $ this -> session -> forget ( self :: TOASTR_NOTIFICATIONS ) ; return $ toastr ; }
Render the notifications' script tag.

@return string
Render the notifications script tag .