phpdotenv
phpdotenv copied to clipboard
Add `withDefault` method & caster for Validator
Like:
$dotEnv->ifPresent('DB_CHARSET')->withDefault('utf8mb4', allowEmpty: false); // sometimes we need empty string
Also a caster will be good too (since dot env load all as string and maybe we want integer value