Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/vendor.1/mews/captcha/src/
Upload File :
Current File : /home/aplikasiposinfo/.trash/vendor.1/mews/captcha/src/helpers.php

<?php

use Intervention\Image\ImageManager;

if (!function_exists('captcha')) {
    /**
     * @param string $config
     * @return array|ImageManager|mixed
     * @throws Exception
     */
    function captcha(string $config = 'default')
    {
        return app('captcha')->create($config);
    }
}

if (!function_exists('captcha_src')) {
    /**
     * @param string $config
     * @return string
     */
    function captcha_src(string $config = 'default'): string
    {
        return app('captcha')->src($config);
    }
}

if (!function_exists('captcha_img')) {

    /**
     * @param string $config
     * @param array $attrs
     * @return string
     */
    function captcha_img(string $config = 'default', array $attrs = []): string
    {
        return app('captcha')->img($config, $attrs);
    }
}

if (!function_exists('captcha_check')) {
    /**
     * @param string $value
     * @return bool
     */
    function captcha_check(string $value): bool
    {
        return app('captcha')->check($value);
    }
}

if (!function_exists('captcha_api_check')) {
    /**
     * @param string $value
     * @param string $key
     * @param string $config
     * @return bool
     */
    function captcha_api_check(string $value, string $key, string $config = 'default'): bool
    {
        return app('captcha')->check_api($value, $key, $config);
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]