error/PublicAlert.php
private static function alert(string $message, string $code) {
        global $json;
        if ($code !== 'success' && $code !== 'info') {
            $message .= ' Contact us if problem persists.';
        }
        $json['alert'][$code][] = $message;
    }
private static function alert(string $message, string $code) {
        global $json;
        if ($code !== 'success' && $code !== 'info') {
            $message .= ' Contact us if problem persists.';
        }
        $json['alert'][$code][] = $message;
    }
Add an alert to the array. If the view is not executed, CarbonPHP will not
handle the global alert.
@param string $message the message to be stored in the alert variable
@param string $code you may choose between success, info, danger, or warning